Browse Source

Fix allowed uncles.

cl-refactor
Gav Wood 10 years ago
parent
commit
92f43a7a35
  1. 2
      libethereum/State.cpp

2
libethereum/State.cpp

@ -564,7 +564,7 @@ u256 State::enact(bytesConstRef _block, BlockChain const& _bc, bool _checkNonce)
BOOST_THROW_EXCEPTION(DuplicateUncleNonce());
BlockInfo uncleParent(_bc.block(uncle.parentHash));
if ((bigint)uncleParent.number < (bigint)m_currentBlock.number - 6)
if ((bigint)uncleParent.number < (bigint)m_currentBlock.number - 7)
BOOST_THROW_EXCEPTION(UncleTooOld());
uncle.verifyParent(uncleParent);

Loading…
Cancel
Save