From 2b1e7e25690723fabd58b2beb836dd522db47591 Mon Sep 17 00:00:00 2001 From: jl777 Date: Sat, 24 Dec 2016 10:59:26 +0200 Subject: [PATCH] test --- iguana/dpow/dpow_fsm.c | 2 ++ iguana/dpow/dpow_tx.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/iguana/dpow/dpow_fsm.c b/iguana/dpow/dpow_fsm.c index eea35e7fa..0d9c49c84 100755 --- a/iguana/dpow/dpow_fsm.c +++ b/iguana/dpow/dpow_fsm.c @@ -448,8 +448,10 @@ void dpow_statemachinestart(void *ptr) } } printf("END isratify.%d:%d bestk.%d %llx sigs.%llx state.%x machine ht.%d completed state.%x %s.%s %s.%s recvmask.%llx paxwdcrc.%x %p %p\n",bp->isratify,dp->ratifying,bp->bestk,(long long)bp->bestmask,(long long)(bp->bestk>=0?bp->destsigsmasks[bp->bestk]:0),bp->state,bp->height,bp->state,dp->dest,bits256_str(str,bp->desttxid),dp->symbol,bits256_str(str2,bp->srctxid),(long long)bp->recvmask,bp->paxwdcrc,src,dest); + bp->state = 0xffffffff; dp->lastrecvmask = bp->recvmask; dp->ratifying -= bp->isratify; + dp->blocks[bp->height] = 0; free(ptr); } diff --git a/iguana/dpow/dpow_tx.c b/iguana/dpow/dpow_tx.c index b1afd099e..09bb97d38 100755 --- a/iguana/dpow/dpow_tx.c +++ b/iguana/dpow/dpow_tx.c @@ -185,6 +185,8 @@ struct dpow_block *dpow_heightfind(struct supernet_info *myinfo,struct dpow_info return(bp); } } + if ( bp != 0 && bp->state == 0xffffffff ) + bp = 0; return(bp); }