Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
56958c1d53
  1. 3
      basilisk/basilisk.c
  2. 1
      basilisk/basilisk_bitcoin.c

3
basilisk/basilisk.c

@ -82,7 +82,7 @@ int32_t basilisk_submit(struct supernet_info *myinfo,cJSON *reqjson,int32_t time
int32_t i,j,k,l,r2,r,n; struct iguana_peer *addr; struct iguana_info *coin; char *reqstr; cJSON *tmpjson;
tmpjson = basilisk_json(myinfo,reqjson,ptr->basilisktag,timeout);
reqstr = jprint(tmpjson,1);
//printf("basilisk_submit.(%s)\n",reqstr);
printf("basilisk_submit.(%s)\n",reqstr);
if ( fanout <= 0 )
fanout = BASILISK_MINFANOUT;
else if ( fanout > BASILISK_MAXFANOUT )
@ -100,6 +100,7 @@ int32_t basilisk_submit(struct supernet_info *myinfo,cJSON *reqjson,int32_t time
if ( (addr= &coin->peers.active[j]) != 0 && addr->supernet != 0 && addr->usock >= 0 )
{
ptr->submit = (uint32_t)time(NULL);
printf("submit to (%s)\n",addr->ipaddr);
iguana_send_supernet(addr,reqstr,0);
if ( n++ > fanout )
break;

1
basilisk/basilisk_bitcoin.c

@ -606,6 +606,7 @@ char *basilisk_bitcoinrawtx(struct supernet_info *myinfo,struct iguana_info *coi
jaddstr(hexjson,"method","rawtx");
jaddstr(hexjson,"activecoin",coin->symbol);
jadd(hexjson,"vals",jduplicate(valsobj));
printf("issue\n");
if ( (ptr= basilisk_issue(myinfo,hexjson,timeoutmillis,0,1,basilisktag)) != 0 )
{
for (i=0; i<ptr->numresults; i++)

Loading…
Cancel
Save