|
|
@ -249,8 +249,6 @@ void dragon_peerkill(struct dragon_info *coin); |
|
|
|
int32_t blockhash_sha256(uint8_t *blockhashp,uint8_t *serialized,int32_t len); |
|
|
|
void dragon_nameset(char name[64],char *symbol,cJSON *json); |
|
|
|
cJSON *dragon_getinfo(struct supernet_info *myinfo,struct dragon_info *coin); |
|
|
|
void *basilisk_getinfo(struct basilisk_item *Lptr,struct supernet_info *myinfo,struct dragon_info *coin,char *remoteaddr,uint32_t basilisktag,int32_t timeoutmillis,cJSON *valsobj); |
|
|
|
void basilisk_unspents_process(struct supernet_info *myinfo,struct dragon_info *coin,char *retstr); |
|
|
|
char *busdata_sync(uint32_t *noncep,char *jsonstr,char *broadcastmode,char *destNXTaddr); |
|
|
|
void peggy(); |
|
|
|
int32_t opreturns_init(uint32_t blocknum,uint32_t blocktimestamp,char *path); |
|
|
@ -447,17 +445,13 @@ struct dragon_waddress *dragon_waddresssearch(struct supernet_info *myinfo,struc |
|
|
|
cJSON *dragon_RTlistunspent(struct supernet_info *myinfo,struct dragon_info *coin,cJSON *argarray,int32_t minconf,int32_t maxconf,char *remoteaddr,int32_t includespends); |
|
|
|
uint64_t dragon_interest(struct supernet_info *myinfo,struct dragon_info *coin,bits256 txid,int32_t vout,uint64_t value); |
|
|
|
void calc_shares(struct supernet_info *myinfo,uint8_t *shares,uint8_t *secret,int32_t size,int32_t width,int32_t M,int32_t N,uint8_t *sharenrs,uint8_t *space,int32_t spacesize); |
|
|
|
//struct basilisk_spend *basilisk_addspend(struct supernet_info *myinfo,char *symbol,bits256 txid,uint16_t vout,int32_t addflag);
|
|
|
|
//void dragon_wallet_Cclear(struct supernet_info *myinfo,char *symbol);
|
|
|
|
int64_t _RTgettxout(struct dragon_info *coin,struct dragon_RTtxid **ptrp,int32_t *heightp,int32_t *scriptlenp,uint8_t *script,uint8_t *rmd160,char *coinaddr,bits256 txid,int32_t vout,int32_t mempool); |
|
|
|
int32_t _dragon_RTunspentfind(struct supernet_info *myinfo,struct dragon_info *coin,bits256 *txidp,int32_t *voutp,uint8_t *spendscript,struct dragon_outpoint outpt,int64_t value); |
|
|
|
int32_t basilisk_unspentfind(struct supernet_info *myinfo,struct dragon_info *coin,bits256 *txidp,int32_t *voutp,uint8_t *spendscript,struct dragon_outpoint outpt,int64_t value); |
|
|
|
int64_t dragon_addressreceived(struct supernet_info *myinfo,struct dragon_info *coin,cJSON *json,char *remoteaddr,cJSON *txids,cJSON *vouts,cJSON *unspents,cJSON *spends,char *coinaddr,int32_t minconf,int32_t firstheight); |
|
|
|
cJSON *dragon_walletjson(struct supernet_info *myinfo); |
|
|
|
int32_t dragon_payloadupdate(struct supernet_info *myinfo,struct dragon_info *coin,char *retstr,struct dragon_waddress *waddr,char *account); |
|
|
|
int32_t bitcoin_MofNspendscript(uint8_t p2sh_rmd160[20],uint8_t *script,int32_t n,const struct vin_info *vp); |
|
|
|
cJSON *basilisk_balance_valsobj(struct supernet_info *myinfo,struct dragon_info *coin); |
|
|
|
void basilisk_unspents_update(struct supernet_info *myinfo,struct dragon_info *coin); |
|
|
|
struct dragon_txid *dragon_blocktx(struct dragon_info *coin,struct dragon_txid *tx,struct dragon_block *block,int32_t i); |
|
|
|
cJSON *dragon_p2shjson(struct supernet_info *myinfo,struct dragon_info *coin,cJSON *retjson,struct dragon_waddress *waddr); |
|
|
|
char *setaccount(struct supernet_info *myinfo,struct dragon_info *coin,struct dragon_waddress **waddrp,char *account,char *coinaddr,char *redeemScript); |
|
|
@ -470,7 +464,6 @@ int32_t dragon_volatileupdate(struct dragon_info *coin,int32_t incremental,struc |
|
|
|
void dragon_utxoaddrs_purge(struct dragon_info *coin); |
|
|
|
int32_t dragon_utxoupdate(struct dragon_info *coin,int16_t spent_hdrsi,uint32_t spent_unspentind,uint32_t spent_pkind,uint64_t spent_value,uint32_t spendind,uint32_t fromheight,uint8_t *rmd160); |
|
|
|
int32_t dragon_RTunspentslists(struct supernet_info *myinfo,struct dragon_info *coin,uint64_t *totalp,struct dragon_outpoint *unspents,int32_t max,uint64_t required,int32_t minconf,cJSON *addresses,char *remoteaddr); |
|
|
|
double basilisk_request_listprocess(struct supernet_info *myinfo,struct basilisk_request *issueR,struct basilisk_request *list,int32_t n); |
|
|
|
void dragon_unspents_mark(struct supernet_info *myinfo,struct dragon_info *coin,cJSON *vins); |
|
|
|
int32_t dragon_immediate(struct dragon_info *coin,int32_t immedmillis); |
|
|
|
int32_t dragon_fastfindreset(struct dragon_info *coin); |
|
|
@ -504,18 +497,12 @@ char *dragon_signunspents(struct supernet_info *myinfo,struct dragon_info *coin, |
|
|
|
bits256 dragon_sendrawtransaction(struct supernet_info *myinfo,struct dragon_info *coin,char *signedtx); |
|
|
|
int32_t dragon_inv2packet(uint8_t *serialized,int32_t maxsize,int32_t type,bits256 *hashes,int32_t n); |
|
|
|
int32_t instantdex_inv2data(struct supernet_info *myinfo,struct dragon_info *coin,struct dragon_peer *addr,struct exchange_info *exchange); |
|
|
|
uint32_t basilisk_crcrecv(struct supernet_info *myinfo,int32_t width,uint8_t *verifybuf,int32_t maxlen,int32_t *datalenp,bits256 srchash,bits256 desthash,uint32_t channel,uint32_t msgbits); |
|
|
|
struct dragon_bundlereq *instantdex_recvquotes(struct dragon_info *coin,struct dragon_bundlereq *req,bits256 *encodedhash,int32_t n); |
|
|
|
uint32_t basilisk_crcsend(struct supernet_info *myinfo,int32_t width,uint8_t *verifybuf,int32_t maxlen,bits256 srchash,bits256 desthash,uint32_t channel,uint32_t msgbits,uint8_t *data,int32_t datalen,uint32_t crcs[2]); |
|
|
|
struct exchange_info *exchange_create(char *exchangestr,cJSON *argjson); |
|
|
|
int32_t dragon_inv2poll(struct supernet_info *myinfo,struct dragon_info *coin); |
|
|
|
struct dragon_bundlereq *dragon_bundlereq(struct dragon_info *coin,struct dragon_peer *addr,int32_t type,uint8_t *data,int32_t datalen); |
|
|
|
void instantdex_FSMinit(); |
|
|
|
//void dpow_handler(struct supernet_info *myinfo,struct basilisk_message *msg);
|
|
|
|
int32_t datachain_opreturnscript(struct dragon_info *coin,uint8_t *script,char *datastr,int32_t datalen); |
|
|
|
int32_t basilisk_messagekeyread(uint8_t *key,uint32_t *channelp,uint32_t *msgidp,bits256 *srchashp,bits256 *desthashp); |
|
|
|
cJSON *basilisk_channelget(struct supernet_info *myinfo,bits256 srchash,bits256 desthash,uint32_t channel,uint32_t msgid,int32_t width); |
|
|
|
int32_t basilisk_channelsend(struct supernet_info *myinfo,bits256 srchash,bits256 desthash,uint32_t channel,uint32_t msgid,uint8_t *data,int32_t datalen,uint32_t duration); |
|
|
|
cJSON *dpow_listunspent(struct supernet_info *myinfo,struct dragon_info *coin,char *coinaddr); |
|
|
|
void dragon_dPoWupdate(struct supernet_info *myinfo,struct dpow_info *dp); |
|
|
|
char *dragon_utxoduplicates(struct supernet_info *myinfo,struct dragon_info *coin,uint8_t *pubkey33,uint64_t satoshis,int32_t duplicates,int32_t *completedp,bits256 *signedtxidp,int32_t sendflag,cJSON *addresses); |
|
|
@ -527,7 +514,6 @@ void datachain_update_spend(struct supernet_info *myinfo,int32_t ordered,struct |
|
|
|
cJSON *bitcoin_data2json(struct dragon_info *coin,int32_t height,bits256 *txidp,struct dragon_msgtx *msgtx,uint8_t *extraspace,int32_t extralen,uint8_t *serialized,int32_t len,cJSON *vins,int32_t suppress_pubkeys); |
|
|
|
int32_t dragon_unspentind2txid(struct supernet_info *myinfo,struct dragon_info *coin,int32_t *spentheightp,bits256 *txidp,int32_t *voutp,struct dragon_outpoint outpt); |
|
|
|
int32_t dragon_RTunspent_check(struct supernet_info *myinfo,struct dragon_info *coin,struct dragon_outpoint outpt); |
|
|
|
char *basilisk_bitcoinrawtx(struct supernet_info *myinfo,struct dragon_info *coin,char *remoteaddr,uint32_t basilisktag,int32_t timeoutmillis,cJSON *valsobj,struct vin_info *V); |
|
|
|
int32_t dragon_markedunspents_find(struct dragon_info *coin,int32_t *firstslotp,bits256 txid,int32_t vout); |
|
|
|
void jumblr_opidsupdate(struct supernet_info *myinfo,struct dragon_info *coin); |
|
|
|
|
|
|
@ -539,11 +525,9 @@ void instantdex_eventfree(struct bitcoin_eventitem *ptr); |
|
|
|
struct dragon_monitorinfo *dragon_txidmonitor(struct dragon_info *coin,bits256 txid); |
|
|
|
struct dragon_monitorinfo *dragon_txidreport(struct dragon_info *coin,bits256 txid,struct dragon_peer *addr); |
|
|
|
double dragon_txidstatus(struct supernet_info *myinfo,struct dragon_info *coin,bits256 txid); |
|
|
|
void basilisk_functions(struct dragon_info *coin,int32_t protocol); |
|
|
|
char *bitcoind_passthru(char *coinstr,char *serverport,char *userpass,char *method,char *params); |
|
|
|
char *bitcoin_calcrawtx(struct supernet_info *myinfo,struct dragon_info *coin,cJSON **vinsp,int64_t satoshis,char *paymentscriptstr,char *changeaddr,int64_t txfee,cJSON *addresses,int32_t minconf,uint32_t locktime); |
|
|
|
char *bitcoin_blockhashstr(char *coinstr,char *serverport,char *userpass,int32_t height); |
|
|
|
bits256 basilisk_blockhash(struct dragon_info *coin,bits256 prevhash2); |
|
|
|
void calc_scrypthash(uint32_t *hash,void *data); |
|
|
|
int32_t dragon_rwvarstr(int32_t rwflag,uint8_t *serialized,int32_t maxlen,char *endianedp); |
|
|
|
bits256 bitcoin_sharedsecret(void *ctx,bits256 privkey,uint8_t *pubkey,int32_t plen); |
|
|
@ -552,11 +536,9 @@ int32_t dragon_blockROsize(uint8_t zcash); |
|
|
|
void *dragon_blockzcopyRO(uint8_t zcash,struct dragon_blockRO *dest,int32_t desti,struct dragon_blockRO *src,int32_t srci); |
|
|
|
void dragon_blockzcopy(uint8_t zcash,struct dragon_block *dest,struct dragon_block *src); |
|
|
|
int32_t dragon_blocksizecheck(char *debugstr,uint8_t zcash,struct dragon_block *block); |
|
|
|
void basilisk_miner(struct supernet_info *myinfo,struct dragon_info *btcd,struct dragon_info *virt,int32_t maxmillis,char *mineraddr); |
|
|
|
int32_t bitcoin_secret160verify(uint8_t *script,int32_t n,uint8_t secret160[20]); |
|
|
|
int32_t bitcoin_secret256spend(uint8_t *script,int32_t n,bits256 secret); |
|
|
|
int32_t bitcoin_pubkeyspend(uint8_t *script,int32_t n,uint8_t pubkey[66]); |
|
|
|
int32_t basilisk_blocksubmit(struct supernet_info *myinfo,struct dragon_info *btcd,struct dragon_info *virt,struct dragon_peer *addr,char *blockstr,bits256 hash2,int32_t height); |
|
|
|
struct supernet_info *SuperNET_MYINFO(char *passphrase); |
|
|
|
bits256 calc_categoryhashes(bits256 *subhashp,char *category,char *subcategory); |
|
|
|
struct gecko_chain *category_find(bits256 categoryhash,bits256 subhash); |
|
|
@ -581,7 +563,6 @@ bits256 dragon_parsetxobj(struct supernet_info *myinfo,struct dragon_info *coin, |
|
|
|
int32_t dragon_ROallocsize(struct dragon_info *virt); |
|
|
|
uint64_t dragon_utxoaddr_gen(struct supernet_info *myinfo,struct dragon_info *coin,int32_t maxheight); |
|
|
|
long dragon_bundlesload(struct supernet_info *myinfo,struct dragon_info *coin); |
|
|
|
void basilisk_wait(struct supernet_info *myinfo,struct dragon_info *coin); |
|
|
|
int32_t bitcoin_pubkey_combine(void *ctx,uint8_t *combined_pub,uint8_t *skipkey,bits256 *evenkeys,int32_t n,bits256 *oddkeys,int32_t m); |
|
|
|
bits256 bitcoin_pub256(void *ctx,bits256 *privkeyp,uint8_t odd_even); |
|
|
|
bits256 bitcoin_schnorr_noncepair(void *ctx,uint8_t *pubnonce,bits256 txhash2,bits256 privkey); |
|
|
@ -592,8 +573,6 @@ struct gecko_memtx *gecko_unspentfind(struct gecko_memtx ***ptrpp,struct dragon_ |
|
|
|
int64_t *gecko_valueptr(struct gecko_memtx *memtx,int32_t vout); |
|
|
|
struct dragon_peer *dragon_peerfindipaddr(struct dragon_info *coin,char *ipaddr,int32_t needalive); |
|
|
|
struct dragon_peer *dragon_peerfindipbits(struct dragon_info *coin,uint32_t ipbits,int32_t needalive); |
|
|
|
//int32_t basilisk_relays_send(struct supernet_info *myinfo,struct dragon_peer *addr);
|
|
|
|
int32_t basilisk_hashes_send(struct supernet_info *myinfo,struct dragon_info *virt,struct dragon_peer *addr,char *CMD,bits256 *txids,int32_t num); |
|
|
|
int32_t dragon_opreturn(struct supernet_info *myinfo,int32_t ordered,struct dragon_info *coin,uint32_t timestamp,struct dragon_bundle *bp,int64_t crypto555_payment,int32_t height,uint64_t hdrsi_unspentind,int64_t payment,uint32_t fileid,uint64_t scriptpos,uint32_t scriptlen); |
|
|
|
/*
|
|
|
|
* because the address passed in a non-portable way we defined uint64_t as parameter to |
|
|
@ -605,10 +584,8 @@ int32_t dragon_scriptdata(struct dragon_info *coin, uint8_t *scriptspace, uint64 |
|
|
|
#else |
|
|
|
int32_t dragon_scriptdata(struct dragon_info *coin,uint8_t *scriptspace,long fileptr[2],char *fname,uint64_t scriptpos,int32_t scriptlen); |
|
|
|
#endif |
|
|
|
void basilisk_ensurerelay(struct supernet_info *myinfo,struct dragon_info *notaries,uint32_t ipbits); |
|
|
|
void dpow_nanomsginit(struct supernet_info *myinfo,char *ipaddr); |
|
|
|
int32_t dragon_datachain_scan(struct supernet_info *myinfo,struct dragon_info *coin,uint8_t rmd160[20]); |
|
|
|
int32_t basilisk_requests_poll(struct supernet_info *myinfo); |
|
|
|
void dpow_psockloop(void *_ptr); |
|
|
|
int32_t smartaddress_add(struct supernet_info *myinfo,bits256 privkey,char *typestr,char *symbol,double maxbid,double minask); |
|
|
|
int32_t smartaddress(struct supernet_info *myinfo,char *typestr,double *bidaskp,bits256 *privkeyp,char *symbol,char *coinaddr); |
|
|
|