Browse Source

Don't assert.

cl-refactor
Gav Wood 10 years ago
parent
commit
0bbfec52d6
  1. 3
      libethereum/BlockChain.cpp

3
libethereum/BlockChain.cpp

@ -275,7 +275,8 @@ h256s BlockChain::import(bytes const& _block, OverlayDB const& _db)
} }
auto pd = details(bi.parentHash); auto pd = details(bi.parentHash);
assert(pd); if (!pd)
cwarn << "Odd: details is returning false despite block known:" << RLP(pd.rlp());
// Check it's not crazy // Check it's not crazy
if (bi.timestamp > (u256)time(0)) if (bi.timestamp > (u256)time(0))

Loading…
Cancel
Save