From 4d55443750feb25c6d425eb71643bdc370f2e675 Mon Sep 17 00:00:00 2001 From: Stan Kladko <13399135+kladkogex@users.noreply.github.com> Date: Mon, 6 Nov 2023 13:22:40 +0000 Subject: [PATCH] #1702 added a log record if node info is empty in config --- libethereum/Client.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libethereum/Client.cpp b/libethereum/Client.cpp index 652d54552..0dd5831e7 100644 --- a/libethereum/Client.cpp +++ b/libethereum/Client.cpp @@ -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() ) {