From 262bd9473c9996210252f3f71428a094301d0706 Mon Sep 17 00:00:00 2001 From: jl777 Date: Sun, 27 Nov 2016 17:56:52 -0300 Subject: [PATCH] test --- iguana/dpow/dpow_fsm.c | 6 +++--- iguana/dpow/dpow_rpc.c | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/iguana/dpow/dpow_fsm.c b/iguana/dpow/dpow_fsm.c index adb900046..d5891d53c 100755 --- a/iguana/dpow/dpow_fsm.c +++ b/iguana/dpow/dpow_fsm.c @@ -327,7 +327,7 @@ void dpow_statemachinestart(void *ptr) dp->ratifying -= bp->isratify; return; } - printf(" myind.%d myaddr.(%s %s)\n",myind,srcaddr,destaddr); + //printf(" myind.%d myaddr.(%s %s)\n",myind,srcaddr,destaddr); if ( myind == 0 && bits256_nonz(destprevtxid0) != 0 && bits256_nonz(srcprevtxid0) != 0 && destprevvout0 >= 0 && srcprevvout0 >= 0 ) { ep->dest.prev_hash = destprevtxid0; @@ -375,7 +375,7 @@ void dpow_statemachinestart(void *ptr) { if ( dp->checkpoint.blockhash.height > checkpoint.blockhash.height ) { - printf("abort ht.%d due to new checkpoint.%d\n",checkpoint.blockhash.height,dp->checkpoint.blockhash.height); + printf("abort %s ht.%d due to new checkpoint.%d\n",dp->symbol,checkpoint.blockhash.height,dp->checkpoint.blockhash.height); dp->ratifying -= bp->isratify; return; } @@ -396,7 +396,7 @@ void dpow_statemachinestart(void *ptr) { if ( bp->isratify == 0 ) { - printf("abort ht.%d due to new checkpoint.%d\n",checkpoint.blockhash.height,dp->checkpoint.blockhash.height); + printf("abort %s ht.%d due to new checkpoint.%d\n",dp->symbol,checkpoint.blockhash.height,dp->checkpoint.blockhash.height); break; } } diff --git a/iguana/dpow/dpow_rpc.c b/iguana/dpow/dpow_rpc.c index 5b768c75c..94c720493 100755 --- a/iguana/dpow/dpow_rpc.c +++ b/iguana/dpow/dpow_rpc.c @@ -449,10 +449,10 @@ int32_t dpow_haveutxo(struct supernet_info *myinfo,struct iguana_info *coin,bits } if ( haveutxo == 0 ) printf("no utxo: need to fund address.(%s) or wait for splitfund to confirm\n",coinaddr); - } else printf("null utxo array size\n"); + } //else printf("null utxo array size\n"); free_json(unspents); } else printf("null return from dpow_listunspent\n"); - if ( haveutxo > 0 ) + if ( 0 && haveutxo > 0 ) printf("%s haveutxo.%d\n",coin->symbol,haveutxo); return(haveutxo); }