net: Pass chainman into PeerLogicValidation

This commit is contained in:
MarcoFalke 2020-04-18 08:29:03 -04:00
parent fa7b626d7a
commit fa05fdf0f1
No known key found for this signature in database
GPG key ID: CE2B75697E69A548
6 changed files with 17 additions and 14 deletions

View file

@ -1382,7 +1382,7 @@ bool AppInitMain(const util::Ref& context, NodeContext& node)
node.chainman = &g_chainman;
ChainstateManager& chainman = EnsureChainman(node);
node.peer_logic.reset(new PeerLogicValidation(node.connman.get(), node.banman.get(), *node.scheduler, *node.mempool));
node.peer_logic.reset(new PeerLogicValidation(node.connman.get(), node.banman.get(), *node.scheduler, *node.chainman, *node.mempool));
RegisterValidationInterface(node.peer_logic.get());
// sanitize comments per BIP-0014, format user agent and check total size