|
@ -781,7 +781,7 @@ char *basilisk_bitcoinrawtx(struct supernet_info *myinfo,struct iguana_info *coi |
|
|
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) (%s)\n",jprint(addresses,0),spendscriptstr!=0?spendscriptstr:"no script"); |
|
|
//printf("(%s) vals.(%s) change.(%s) spend.%s\n",coin->symbol,jprint(valsobj,0),changeaddr,spendscriptstr);
|
|
|
//printf("(%s) vals.(%s) change.(%s) spend.%s\n",coin->symbol,jprint(valsobj,0),changeaddr,spendscriptstr);
|
|
|
if ( changeaddr == 0 || changeaddr[0] == 0 || spendscriptstr == 0 || spendscriptstr[0] == 0 ) |
|
|
if ( changeaddr == 0 || changeaddr[0] == 0 || spendscriptstr == 0 || spendscriptstr[0] == 0 ) |
|
|
return(clonestr("{\"error\":\"invalid changeaddr or spendscript or addresses\"}")); |
|
|
return(clonestr("{\"error\":\"invalid changeaddr or spendscript or addresses\"}")); |
|
|