Changeset View
Changeset View
Standalone View
Standalone View
src/net_permissions.cpp
// Copyright (c) 2009-2018 The Bitcoin Core developers | // Copyright (c) 2009-2018 The Bitcoin Core developers | ||||
// Distributed under the MIT software license, see the accompanying | // Distributed under the MIT software license, see the accompanying | ||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | // file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
#include <net_permissions.h> | #include <net_permissions.h> | ||||
#include <netbase.h> | #include <netbase.h> | ||||
#include <util/error.h> | #include <util/error.h> | ||||
#include <util/system.h> | #include <util/system.h> | ||||
#include <util/translation.h> | #include <util/translation.h> | ||||
const std::vector<std::string> NET_PERMISSIONS_DOC{ | const std::vector<std::string> NET_PERMISSIONS_DOC{ | ||||
"bloomfilter (allow requesting BIP37 filtered blocks and transactions)", | "bloomfilter (allow requesting BIP37 filtered blocks and transactions)", | ||||
"noban (do not ban for misbehavior; implies download)", | "noban (do not ban for misbehavior; implies download)", | ||||
"forcerelay (relay transactions that are already in the mempool; implies " | "forcerelay (relay transactions that are already in the mempool; implies " | ||||
"relay)", | "relay)", | ||||
"relay (relay even in -blocksonly mode)", | "relay (relay even in -blocksonly mode, and unlimited transaction " | ||||
"announcements)", | |||||
"mempool (allow requesting BIP35 mempool contents)", | "mempool (allow requesting BIP35 mempool contents)", | ||||
"download (allow getheaders during IBD, no disconnect after " | "download (allow getheaders during IBD, no disconnect after " | ||||
"maxuploadtarget limit)", | "maxuploadtarget limit)", | ||||
}; | }; | ||||
namespace { | namespace { | ||||
// The parse the following format "perm1,perm2@xxxxxx" | // The parse the following format "perm1,perm2@xxxxxx" | ||||
▲ Show 20 Lines • Show All 136 Lines • Show Last 20 Lines |