Skip to content

Commit

Permalink
#1702 Use start with
Browse files Browse the repository at this point in the history
  • Loading branch information
kladkogex committed Nov 7, 2023
1 parent cfbd435 commit 47bc822
Showing 1 changed file with 2 additions and 21 deletions.
23 changes: 2 additions & 21 deletions libethereum/Precompiled.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -676,26 +676,7 @@ ETH_REGISTER_PRECOMPILED( logTextMessage )( bytesConstRef _in ) {
}

static const std::list< std::string > g_listReadableConfigParts{ "sealEngine",
//"genesis.*"
//"params.*",

// skaled-1702
// remove these config field from public access for security reasons
// "skaleConfig.nodeInfo.wallets.ima.commonBLSPublicKey*",
// "skaleConfig.nodeInfo.wallets.ima.BLSPublicKey*",

// "skaleConfig.nodeInfo.nodeName", "skaleConfig.nodeInfo.nodeID",
// "skaleConfig.nodeInfo.basePort*", "skaleConfig.nodeInfo.*RpcPort*",
// "skaleConfig.nodeInfo.acceptors", "skaleConfig.nodeInfo.max-connections",
// "skaleConfig.nodeInfo.max-http-queues", "skaleConfig.nodeInfo.ws-mode",

// "skaleConfig.contractSettings.*",

// "skaleConfig.sChain.emptyBlockIntervalMs",

// "skaleConfig.sChain.schainName", "skaleConfig.sChain.schainID",

"skaleConfig.sChain.nodes.*" };
"skaleConfig.sChain.nodes." };

static bool stat_is_accessible_json_path( const std::string& strPath ) {
if ( strPath.empty() )
Expand All @@ -704,7 +685,7 @@ static bool stat_is_accessible_json_path( const std::string& strPath ) {
itEnd = g_listReadableConfigParts.cend();
for ( ; itWalk != itEnd; ++itWalk ) {
const std::string strWildCard = ( *itWalk );
if ( skutils::tools::wildcmp( strWildCard.c_str(), strPath.c_str() ) )
if (boost::algorithm::starts_with( strPath, strWildCard ))
return true;
}
return false;
Expand Down

0 comments on commit 47bc822

Please sign in to comment.