|
@ -496,8 +496,8 @@ void *basilisk_bitcoinrawtx(struct basilisk_item *Lptr,struct supernet_info *myi |
|
|
addresses = iguana_getaddressesbyaccount(myinfo,coin,"*"); |
|
|
addresses = iguana_getaddressesbyaccount(myinfo,coin,"*"); |
|
|
jadd(valsobj,"addresses",addresses); |
|
|
jadd(valsobj,"addresses",addresses); |
|
|
} |
|
|
} |
|
|
printf("use addresses.(%s)\n",jprint(addresses,0)); |
|
|
//printf("use addresses.(%s)\n",jprint(addresses,0));
|
|
|
printf("vals.(%s) change.(%s) spend.%s\n",jprint(valsobj,0),changeaddr,spendscriptstr); |
|
|
//printf("vals.(%s) change.(%s) spend.%s\n",jprint(valsobj,0),changeaddr,spendscriptstr);
|
|
|
if ( changeaddr == 0 || changeaddr[0] == 0 || spendscriptstr == 0 || spendscriptstr[0] == 0 )//|| amount == 0 || addresses == 0 )
|
|
|
if ( changeaddr == 0 || changeaddr[0] == 0 || spendscriptstr == 0 || spendscriptstr[0] == 0 )//|| amount == 0 || addresses == 0 )
|
|
|
{ |
|
|
{ |
|
|
Lptr->retstr = clonestr("{\"error\":\"invalid changeaddr or spendscript or addresses\"}"); |
|
|
Lptr->retstr = clonestr("{\"error\":\"invalid changeaddr or spendscript or addresses\"}"); |
|
|