From e53264c0591c52ff354290a7a65521f586c93aee Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 13 Oct 2016 20:12:06 -0300 Subject: [PATCH] test --- iguana/iguana_notary.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/iguana/iguana_notary.c b/iguana/iguana_notary.c index 0d649d7fc..a6681d9ea 100755 --- a/iguana/iguana_notary.c +++ b/iguana/iguana_notary.c @@ -700,6 +700,9 @@ void dpow_rawtxsign(struct supernet_info *myinfo,struct iguana_info *coin,struct printf(">>>>>>>> rawtx utxo.%d %s/v%d %llx\n",k,bits256_str(str,bp->notaries[k].prev_hash),bp->notaries[k].prev_vout,(long long)bp->recvmask); } } + if ( k == bestk ) + printf("extracted uxto for bestk.%d %llx\n",bestk,(long long)bestmask); + else printf("extracted uxto k.%d != bestk.%d\n",k,bestk); } } m = 0; @@ -759,7 +762,7 @@ int32_t dpow_signedtxgen(struct supernet_info *myinfo,struct iguana_info *coin,s if ( (txobj= dpow_createtx(coin,&vins,bp,bestk,bestmask,0)) != 0 ) { txid = dpow_notarytx(rawtx,&numsigs,coin->chain->isPoS,bp,opret_symbol); - if ( bits256_nonz(txid) != 0 && rawtx[0] != 0 ) + if ( bits256_nonz(txid) != 0 && rawtx[0] != 0 ) // send tx to share utxo set { memset(&tmp,0,sizeof(tmp)); tmp.ulongs[1] = bestmask;