diff --git a/libethereum/BlockChain.h b/libethereum/BlockChain.h index c60482817..c08faaa22 100644 --- a/libethereum/BlockChain.h +++ b/libethereum/BlockChain.h @@ -450,6 +450,10 @@ public: try { 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) {