Browse Source

check uncles (including difficulty and gasLimit)

cl-refactor
CJentzsch 10 years ago
parent
commit
6e90aa80eb
  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