Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
cc5c3f39b9
  1. 2
      basilisk/basilisk.c
  2. 2
      basilisk/basilisk_bitcoin.c
  3. 2
      iguana/tests/rawtx

2
basilisk/basilisk.c

@ -531,7 +531,7 @@ void basilisks_loop(void *arg)
if ( (metricfunc= pending->metricfunc) != 0 )
{
pending->metrics[i] = (*metricfunc)(myinfo,pending,pending->results[i]);
printf("poll metrics\n");
//printf("poll metrics\n");
}
flag++;
}

2
basilisk/basilisk_bitcoin.c

@ -415,6 +415,8 @@ void *basilisk_bitcoinvalue(struct basilisk_item *Lptr,struct supernet_info *myi
return(Lptr);
}
} //else return(bitcoin_value(coin,txid,vout,coinaddr));
Lptr->retstr = clonestr("{\"error\":\"couldnt create rawtx locally\"}");
return(Lptr);
}
printf("Scan basilisks values\n");
if ( (v= myinfo->basilisks.values) != 0 )

2
iguana/tests/rawtx

@ -1 +1 @@
curl --url "http://127.0.0.1:7778" --data "{\"activecoin\":\"BTC\",\"agent\":\"basilisk\",\"method\":\"rawtx\",\"vals\":{\"changeaddr\":\"1FNhoaBYzf7safMBjoCsJYgxtah3K95sep\",\"addresses\":[\"1Hgzt5xsnbfc8UTWqWKSTLRm5bEYHYBoCE\"],\"timeout\":5000,\"amount\":\"20000\",\"spendscript\":\"76a914b7128d2ee837cf03e30a2c0e3e0181f7b9669bb688ac\"}}"
curl --url "http://127.0.0.1:7778" --data "{\"activecoin\":\"BTC\",\"agent\":\"basilisk\",\"method\":\"rawtx\",\"vals\":{\"changeaddr\":\"1FNhoaBYzf7safMBjoCsJYgxtah3K95sep\",\"addresses\":[\"1Hgzt5xsnbfc8UTWqWKSTLRm5bEYHYBoCE\"],\"timeout\":15000,\"amount\":\"20000\",\"spendscript\":\"76a914b7128d2ee837cf03e30a2c0e3e0181f7b9669bb688ac\"}}"

Loading…
Cancel
Save