Skip to content

Commit

Permalink
SKALED-1745 Init patch timestamp in Client::init (to prevent failure)
Browse files Browse the repository at this point in the history
  • Loading branch information
dimalit committed Jan 10, 2024
1 parent 9f1de09 commit 6a14d05
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libethereum/Client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,10 @@ void Client::init( WithExisting _forceAction, u256 _networkId ) {
// HACK Needed to set env var for consensus
AmsterdamFixPatch::isEnabled( *this );

// needed for checkOutExternalGas
CorrectForkInPowPatch::lastBlockTimestamp = blockChain().info().timestamp();
CorrectForkInPowPatch::lastBlockNumber = blockChain().number();

initCPUUSage();

doWork( false );
Expand Down

0 comments on commit 6a14d05

Please sign in to comment.