From 474065ed9903a09d3ff30c08ca9a7581826f6ccb Mon Sep 17 00:00:00 2001 From: blackjok3r Date: Sun, 28 Oct 2018 12:21:34 +0800 Subject: [PATCH] wtf --- src/cc/dice.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/cc/dice.cpp b/src/cc/dice.cpp index 5c3d0ef99..98df4bf0d 100644 --- a/src/cc/dice.cpp +++ b/src/cc/dice.cpp @@ -14,7 +14,6 @@ ******************************************************************************/ #include "CCdice.h" -bool Eval::GetBlock(uint256 hash, CBlockIndex& blockIdx); // timeout @@ -549,7 +548,7 @@ bool DiceValidate(struct CCcontract_info *cp,Eval *eval,const CTransaction &tx) else if ( tx.vin[1].prevout.hash != tx.vin[2].prevout.hash ) return eval->Invalid("vin0 != vin1 prevout.hash for bet"); else if ( eval->GetTxUnconfirmed(tx.vin[1].prevout.hash,vinTx,hashBlock) == 0 ) { - if (hashBlock.IsNull() || !GetBlock(hashBlock, block)) + if (hashBlock.IsNull() || !Eval::GetBlock(hashBlock, block)) return eval->Invalid("always should find vin.0, but didnt for wlt"); } else if ( vinTx.vout.size() < 3 || DecodeDiceOpRet(tx.vin[1].prevout.hash,vinTx.vout[vinTx.vout.size()-1].scriptPubKey,vinsbits,vinfundingtxid,vinhentropy,vinproof) != 'B' )