diff --git a/libethereum/Transaction.cpp b/libethereum/Transaction.cpp index 5bd057524..dc41a2838 100644 --- a/libethereum/Transaction.cpp +++ b/libethereum/Transaction.cpp @@ -209,12 +209,15 @@ void Transaction::checkOutExternalGas( const ChainParams& _cp, uint64_t _bn, boo if ( CorrectForkInPowPatch::isEnabled() ) scheduleForUse = _cp.scheduleForBlockNumber( _bn ); + +#ifndef HISTORIC_STATE // FIX FOR 2.3.1. Will not be needed in 2.4 // never call checkOutExternalGas with non-last block if ( _bn != CorrectForkInPowPatch::getLastBlockNumber() ) { ctrace << _bn << " != " << CorrectForkInPowPatch::getLastBlockNumber(); BOOST_THROW_EXCEPTION( std::runtime_error( "Internal error: checkOutExternalGas() has invalid block number" ) ); } +#endif if ( externalGas >= baseGasRequired( scheduleForUse ) ) m_externalGas = externalGas;