diff --git a/basilisk/basilisk.c b/basilisk/basilisk.c index ceabf5bf4..aeb33f134 100755 --- a/basilisk/basilisk.c +++ b/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++; } diff --git a/basilisk/basilisk_bitcoin.c b/basilisk/basilisk_bitcoin.c index 5ca07edda..69948f0ee 100755 --- a/basilisk/basilisk_bitcoin.c +++ b/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 ) diff --git a/iguana/tests/rawtx b/iguana/tests/rawtx index 9f51c473f..2a93782c6 100755 --- a/iguana/tests/rawtx +++ b/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\"}}"