[net processing] Introduce PeerManager options

This commit is contained in:
dergoegge
2023-04-20 13:05:23 +02:00
parent d23fda0584
commit 8b87725921
8 changed files with 59 additions and 17 deletions

View File

@@ -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() { }
/**