Skip to content

Commit

Permalink
#1545 state locking
Browse files Browse the repository at this point in the history
  • Loading branch information
kladkogex committed Jul 22, 2024
1 parent 03d5f07 commit 6e5b77b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions libethereum/Client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,11 @@ void Client::injectSkaleHost( std::shared_ptr< SkaleHost > _skaleHost ) {
}

void Client::populateNewChainStateFromGenesis() {
// make sure no block processing happens while we are
// initing the state. This is probably never going to happen anyway
// since block processing happens very early in Client init
// but better safe than sorry
DEV_GUARDED(m_blockImportMutex)
#ifdef HISTORIC_STATE
m_state = m_state.createStateCopyAndClearCaches();
m_state.populateFrom( bc().chainParams().genesisState );
Expand Down

0 comments on commit 6e5b77b

Please sign in to comment.