Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
9ee52ea860
  1. 2
      basilisk/basilisk.c
  2. 1
      basilisk/basilisk_bitcoin.c

2
basilisk/basilisk.c

@ -169,7 +169,7 @@ void basilisk_functions(struct iguana_info *coin)
char *basilisk_issuecmd(basilisk_func func,struct supernet_info *myinfo,char *remoteaddr,uint32_t basilisktag,char *symbol,int32_t timeoutmillis,cJSON *vals)
{
struct iguana_info *coin; char *retstr=0; cJSON *retjson;
struct iguana_info *coin; char *retstr=0;
if ( basilisktag == 0 )
OS_randombytes((uint8_t *)&basilisktag,sizeof(basilisktag));
if ( (coin= iguana_coinfind(symbol)) != 0 )

1
basilisk/basilisk_bitcoin.c

@ -594,6 +594,7 @@ char *basilisk_bitcoinrawtx(struct supernet_info *myinfo,struct iguana_info *coi
jadd(resultobj,"vals",valsobj);
jaddstr(resultobj,"agent","basilisk");
jaddstr(resultobj,"method","result");
jaddnum(resultobj,"plaintext",1);
//retstr = jprint(basilisk_resultsjson(myinfo,coin->symbol,remoteaddr,basilisktag,timeoutmillis,jprint(resultobj,1)),1);
return(jprint(resultobj,1));
} else free(rawtx);

Loading…
Cancel
Save