From 56691a028a3a7f907f34ba48818d3e3d94b0b7ba Mon Sep 17 00:00:00 2001 From: jl777 Date: Wed, 7 Nov 2018 01:30:47 -1100 Subject: [PATCH] test --- src/cc/dice.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cc/dice.cpp b/src/cc/dice.cpp index 203a59395..cebc48d23 100644 --- a/src/cc/dice.cpp +++ b/src/cc/dice.cpp @@ -805,9 +805,9 @@ int64_t DicePlanFunds(uint64_t &entropyval,uint256 &entropytxid,uint64_t refsbit { if ( funcid == 'E' && fundingtxid != tx.vin[0].prevout.hash ) { - if ( GetTransaction(tx.vin[0].prevout.hash,vinTx,hashBlock,false) == 0 ) + if ( GetTransaction(tx.vin[0].prevout.hash,vinTx,hashBlock,false) == 0 || vinTx.isCoinBase() != 0 ) { - fprintf(stderr,"cant find entropy vin0 %s or vin0prev %d vouts[%d]\n",uint256_str(str,tx.vin[0].prevout.hash),tx.vin[0].prevout.n,(int32_t)vinTx.vout.size()); + fprintf(stderr,"cant find entropy vin0 %s or vin0prev %d vouts[%d], iscoinbase.%d\n",uint256_str(str,tx.vin[0].prevout.hash),tx.vin[0].prevout.n,(int32_t)vinTx.vout.size(),vinTx.isCoinBase()); continue; } if ( vinTx.vout[tx.vin[0].prevout.n].scriptPubKey != fundingPubKey )