Skip to content

Commit 425e7cb

Browse files
committed
refactor: PutTryParsePermissionFlags in anonymous namespace
It's only used inside `net_permissions.cpp`.
1 parent 77b79fa commit 425e7cb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/net_permissions.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ const std::vector<std::string> NET_PERMISSIONS_DOC{
1616
"mempool (allow requesting BIP35 mempool contents)",
1717
};
1818

19+
namespace {
20+
1921
// The parse the following format "perm1,perm2@xxxxxx"
2022
bool TryParsePermissionFlags(const std::string str, NetPermissionFlags& output, size_t& readen, bilingual_str& error)
2123
{
@@ -60,6 +62,8 @@ bool TryParsePermissionFlags(const std::string str, NetPermissionFlags& output,
6062
return true;
6163
}
6264

65+
}
66+
6367
std::vector<std::string> NetPermissions::ToStrings(NetPermissionFlags flags)
6468
{
6569
std::vector<std::string> strings;

0 commit comments

Comments
 (0)