From e9c753662f73092d97d8726f1b865999357304c1 Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 31 Jul 2018 22:30:02 -1100 Subject: [PATCH] +print --- 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 0ad1c1578..298b8a68c 100644 --- a/src/cc/dice.cpp +++ b/src/cc/dice.cpp @@ -537,7 +537,7 @@ uint64_t AddDiceInputs(struct CCcontract_info *cp,CMutableTransaction &mtx,CPubK uint64_t DicePlanFunds(uint64_t &entropyval,uint256 &entropytxid,uint64_t refsbits,struct CCcontract_info *cp,CPubKey dicepk,uint256 reffundingtxid) { - char coinaddr[64]; uint64_t sbits,nValue,totalinputs = 0; uint256 hash,txid,proof,hashBlock,fundingtxid; CScript fundingPubKey; CTransaction tx,vinTx; int32_t vout,first=0,n=0; uint8_t funcid; + char coinaddr[64],str[65]; uint64_t sbits,nValue,totalinputs = 0; uint256 hash,txid,proof,hashBlock,fundingtxid; CScript fundingPubKey; CTransaction tx,vinTx; int32_t vout,first=0,n=0; uint8_t funcid; std::vector > unspentOutputs; if ( GetTransaction(reffundingtxid,tx,hashBlock,false) != 0 && tx.vout.size() > 1 && ConstrainVout(tx.vout[0],1,cp->unspendableCCaddr,0) != 0 ) { @@ -573,7 +573,7 @@ uint64_t DicePlanFunds(uint64_t &entropyval,uint256 &entropytxid,uint64_t refsbi { if ( tx.vin[0].prevout.n != 0 || GetTransaction(tx.vin[0].prevout.hash,vinTx,hashBlock,false) == 0 || vinTx.vout.size() < 2 ) { - fprintf(stderr,"cant find entropy tx or vin0prev %d\n",tx.vin[0].prevout.n); + fprintf(stderr,"cant find entropy vin0 %s or vin0prev %d\n",uint256_str(str,tx.vin[0].prevout.hash),tx.vin[0].prevout.n); continue; } if ( vinTx.vout[1].scriptPubKey != fundingPubKey )