wtf
This commit is contained in:
@@ -14,7 +14,6 @@
|
|||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
|
|
||||||
#include "CCdice.h"
|
#include "CCdice.h"
|
||||||
bool Eval::GetBlock(uint256 hash, CBlockIndex& blockIdx);
|
|
||||||
|
|
||||||
// timeout
|
// 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 )
|
else if ( tx.vin[1].prevout.hash != tx.vin[2].prevout.hash )
|
||||||
return eval->Invalid("vin0 != vin1 prevout.hash for bet");
|
return eval->Invalid("vin0 != vin1 prevout.hash for bet");
|
||||||
else if ( eval->GetTxUnconfirmed(tx.vin[1].prevout.hash,vinTx,hashBlock) == 0 ) {
|
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");
|
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' )
|
else if ( vinTx.vout.size() < 3 || DecodeDiceOpRet(tx.vin[1].prevout.hash,vinTx.vout[vinTx.vout.size()-1].scriptPubKey,vinsbits,vinfundingtxid,vinhentropy,vinproof) != 'B' )
|
||||||
|
|||||||
Reference in New Issue
Block a user