Skip to content

Commit

Permalink
#1702 added a log record if node info is empty in config
Browse files Browse the repository at this point in the history
  • Loading branch information
kladkogex committed Nov 6, 2023
1 parent 95215c7 commit 4d55443
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion libethereum/Client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -315,8 +315,12 @@ void Client::init( WithExisting _forceAction, u256 _networkId ) {
if ( m_dbPath.size() )
Defaults::setDBPath( m_dbPath );

if ( ChainParams().sChain.nodeGroups.size() > 0 )
if ( ChainParams().sChain.nodeGroups.size() > 0 ) {
initHistoricGroupIndex();
} else {
LOG( m_logger ) << "Empty node groups in config. "
"This is OK in tests but not OK in production";
}

// init snapshots for not newly created chains
if ( number() ) {
Expand Down

0 comments on commit 4d55443

Please sign in to comment.