mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 06:28:31 +01:00
[net processing] Introduce PeerManager options
This commit is contained in:
@@ -43,9 +43,13 @@ struct CNodeStateStats {
|
||||
class PeerManager : public CValidationInterface, public NetEventsInterface
|
||||
{
|
||||
public:
|
||||
struct Options {
|
||||
bool ignore_incoming_txs{DEFAULT_BLOCKSONLY};
|
||||
};
|
||||
|
||||
static std::unique_ptr<PeerManager> make(CConnman& connman, AddrMan& addrman,
|
||||
BanMan* banman, ChainstateManager& chainman,
|
||||
CTxMemPool& pool, bool ignore_incoming_txs);
|
||||
CTxMemPool& pool, Options opts);
|
||||
virtual ~PeerManager() { }
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user