check nothing when creating raw blocks in blockchaintests

This commit is contained in:
CJentzsch 2015-07-28 23:51:08 +02:00
parent c06522a385
commit 29e85183ce

View File

@ -81,7 +81,7 @@ void mine(Ethash::BlockHeader& _bi)
sealer->generateSeal(_bi); sealer->generateSeal(_bi);
sealed.waitNot({}); sealed.waitNot({});
sealer.reset(); 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 rlpStream << _parentHash << _sha3Uncles << _coinbaseAddress << _stateRoot << _transactionsRoot << _receiptsRoot << _logBloom
<< _difficulty << _number << _gasLimit << _gasUsed << _timestamp << _extraData << h256{} << Nonce{}; << _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) 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 << sourceRlp[i];
header << _mixHash << _nonce; header << _mixHash << _nonce;
_header = Ethash::BlockHeader(header.out(), IgnoreSeal, h256{}, HeaderData); _header = Ethash::BlockHeader(header.out(), CheckNothing, h256{}, HeaderData);
} }
namespace namespace