diff options
author | CJentzsch <jentzsch.software@gmail.com> | 2015-07-29 05:51:08 +0800 |
---|---|---|
committer | CJentzsch <jentzsch.software@gmail.com> | 2015-07-29 05:51:08 +0800 |
commit | 29e85183cef67e1c8d0140f00d2bea0f41c13b06 (patch) | |
tree | 2ada9faa7d152f55f5cca2870dd4a2205b68a473 | |
parent | c06522a385bb41ff3804726f128f34411e9f7cc9 (diff) | |
download | dexon-solidity-29e85183cef67e1c8d0140f00d2bea0f41c13b06.tar.gz dexon-solidity-29e85183cef67e1c8d0140f00d2bea0f41c13b06.tar.zst dexon-solidity-29e85183cef67e1c8d0140f00d2bea0f41c13b06.zip |
check nothing when creating raw blocks in blockchaintests
-rw-r--r-- | TestHelper.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/TestHelper.cpp b/TestHelper.cpp index ab9a1749..a0737859 100644 --- a/TestHelper.cpp +++ b/TestHelper.cpp @@ -81,7 +81,7 @@ void mine(Ethash::BlockHeader& _bi) sealer->generateSeal(_bi); sealed.waitNot({}); sealer.reset(); - _bi = Ethash::BlockHeader(sealed, IgnoreSeal, h256{}, HeaderData); + _bi = Ethash::BlockHeader(sealed, CheckNothing, h256{}, HeaderData); } } @@ -843,7 +843,7 @@ dev::eth::Ethash::BlockHeader constructHeader( rlpStream << _parentHash << _sha3Uncles << _coinbaseAddress << _stateRoot << _transactionsRoot << _receiptsRoot << _logBloom << _difficulty << _number << _gasLimit << _gasUsed << _timestamp << _extraData << h256{} << Nonce{}; - return Ethash::BlockHeader(rlpStream.out(), IgnoreSeal, h256{}, HeaderData); + return Ethash::BlockHeader(rlpStream.out(), CheckNothing, h256{}, HeaderData); } void updateEthashSeal(dev::eth::Ethash::BlockHeader& _header, h256 const& _mixHash, dev::eth::Nonce const& _nonce) @@ -857,7 +857,7 @@ void updateEthashSeal(dev::eth::Ethash::BlockHeader& _header, h256 const& _mixHa header << sourceRlp[i]; header << _mixHash << _nonce; - _header = Ethash::BlockHeader(header.out(), IgnoreSeal, h256{}, HeaderData); + _header = Ethash::BlockHeader(header.out(), CheckNothing, h256{}, HeaderData); } namespace |