|
|
@ -410,7 +410,7 @@ char *iguana_rawtxissue(struct supernet_info *myinfo,struct iguana_info *coin,cJ |
|
|
|
{ |
|
|
|
struct rawtx_queue *ptr; struct iguana_peer *addr; uint8_t spendscript[IGUANA_MAXSCRIPTSIZE]; int32_t i,n,spendlen,delay = 0; cJSON *reqjson,*valsobj,*txobj = 0; uint32_t rawtxtag; char *rawtx = 0; double expiration; |
|
|
|
*vinsp = 0; |
|
|
|
if ( 0 && (coin->VALIDATENODE != 0 || coin->RELAYNODE != 0) ) |
|
|
|
if ( coin->VALIDATENODE != 0 || coin->RELAYNODE != 0 ) |
|
|
|
{ |
|
|
|
if ( (txobj= bitcoin_txcreate(coin,locktime)) != 0 ) |
|
|
|
{ |
|
|
@ -436,6 +436,7 @@ char *iguana_rawtxissue(struct supernet_info *myinfo,struct iguana_info *coin,cJ |
|
|
|
jadd(reqjson,"addresses",addresses); |
|
|
|
jaddnum(reqjson,"plaintext",1); |
|
|
|
jaddnum(reqjson,"request",1); |
|
|
|
jaddnum(reqjson,"timeout",5000); |
|
|
|
OS_randombytes((uint8_t *)&rawtxtag,sizeof(rawtxtag)); |
|
|
|
jaddnum(reqjson,"rawtxtag",rawtxtag); |
|
|
|
valsobj = cJSON_CreateObject(); |
|
|
|