Browse Source

Merge pull request #2626 from CJentzsch/FrontierTests

check uncles (including difficulty and gasLimit)
cl-refactor
Gav Wood 10 years ago
parent
commit
5f97cc7615
  1. 4
      libethereum/BlockChain.h

4
libethereum/BlockChain.h

@ -450,6 +450,10 @@ public:
try try
{ {
h.populateFromHeader(RLP(uncle.data()), (_ir & ImportRequirements::UncleSeals) ? Strictness::CheckEverything : Strictness::IgnoreSeal); h.populateFromHeader(RLP(uncle.data()), (_ir & ImportRequirements::UncleSeals) ? Strictness::CheckEverything : Strictness::IgnoreSeal);
bytes parentHeader(headerData(h.parentHash()));
if (parentHeader.empty())
BOOST_THROW_EXCEPTION(InvalidParentHash());
h.verifyParent(typename Sealer::BlockHeader(parentHeader, IgnoreSeal, h.parentHash(), HeaderData));
} }
catch (Exception& ex) catch (Exception& ex)
{ {

Loading…
Cancel
Save