From 2489d4e91d4648b096823bc360a9ef5a6fbd35ed Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 14 Nov 2016 10:20:11 -0300 Subject: [PATCH] test --- iguana/dpow/dpow_tx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/iguana/dpow/dpow_tx.c b/iguana/dpow/dpow_tx.c index aababff23..310b0d2b5 100755 --- a/iguana/dpow/dpow_tx.c +++ b/iguana/dpow/dpow_tx.c @@ -475,8 +475,8 @@ void dpow_sigscheck(struct supernet_info *myinfo,struct dpow_info *dp,struct dpo coin = (src_or_dest != 0) ? bp->destcoin : bp->srccoin; memset(zero.bytes,0,sizeof(zero)); channel = (src_or_dest != 0) ? DPOW_SIGBTCCHANNEL : DPOW_SIGCHANNEL; - printf("dpow_sigscheck myind.%d src_dest.%d state.%x coin.%s\n",myind,src_or_dest,bp->state,coin->symbol); - if ( bp->state != 0xffffffff && coin != 0 ) + printf("dpow_sigscheck (%d %llx) myind.%d src_dest.%d state.%x coin.%s\n",bp->bestk,(long long)bp->bestmask,myind,src_or_dest,bp->state,coin->symbol); + if ( bp->bestk >= 0 && bp->state != 0xffffffff && coin != 0 ) { signedtxid = dpow_notarytx(bp->signedtx,&numsigs,coin->chain->isPoS,bp,bp->bestk,bp->bestmask,1,src_or_dest,bp->numratified!=0?bp->ratified_pubkeys:0,bp->numratified); printf("src_or_dest.%d bestk.%d %llx %s numsigs.%d signedtx.(%s)\n",src_or_dest,bp->bestk,(long long)bp->bestmask,bits256_str(str,signedtxid),numsigs,bp->signedtx);