doc: Extract net permissions doc

This commit is contained in:
MarcoFalke
2020-06-06 13:28:47 -04:00
parent 399a0d9dc7
commit fa2c2b50d8
3 changed files with 17 additions and 6 deletions

View File

@@ -8,6 +8,14 @@
#include <util/system.h>
#include <util/translation.h>
const std::vector<std::string> NET_PERMISSIONS_DOC{
"bloomfilter (allow requesting BIP37 filtered blocks and transactions)",
"noban (do not ban for misbehavior)",
"forcerelay (relay transactions that are already in the mempool; implies relay)",
"relay (relay even in -blocksonly mode)",
"mempool (allow requesting BIP35 mempool contents)",
};
// The parse the following format "perm1,perm2@xxxxxx"
bool TryParsePermissionFlags(const std::string str, NetPermissionFlags& output, size_t& readen, std::string& error)
{