Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
f9ac39a5cc
  1. 12
      basilisk/basilisk_bitcoin.c

12
basilisk/basilisk_bitcoin.c

@ -588,10 +588,14 @@ char *basilisk_bitcoinrawtx(struct supernet_info *myinfo,struct iguana_info *coi
{ {
free_json(txobj); free_json(txobj);
resultobj = cJSON_CreateObject(); resultobj = cJSON_CreateObject();
jaddstr(resultobj,"rawtx",rawtx), free(rawtx); valsobj = cJSON_CreateObject();
jadd(resultobj,"vins",vins); jaddstr(valsobj,"rawtx",rawtx), free(rawtx);
retstr = jprint(basilisk_resultsjson(myinfo,coin->symbol,remoteaddr,basilisktag,timeoutmillis,jprint(resultobj,1)),1); jadd(valsobj,"vins",vins);
return(retstr); jadd(resultobj,"vals",valsobj);
jaddstr(resultobj,"agent","basilisk");
jaddstr(resultobj,"method","result");
//retstr = jprint(basilisk_resultsjson(myinfo,coin->symbol,remoteaddr,basilisktag,timeoutmillis,jprint(resultobj,1)),1);
return(jprint(resultobj,1));
} else free(rawtx); } else free(rawtx);
} }
} }

Loading…
Cancel
Save