Skip to content

Commit 4fefd80

Browse files
committed
Merge #19704: Net processing: move ProcessMessage() to PeerLogicValidation
daed542 [net_processing] Move ProcessMessage to PeerLogicValidation (John Newbery) c556770 [net_processing] Change PeerLogicValidation to hold a connman reference (John Newbery) Pull request description: Rather than ProcessMessage() being a static function in net_processing.cpp, make it a private member function of PeerLogicValidation. This is the start of moving static functions and global variables into PeerLogicValidation to make it better encapsulated. ACKs for top commit: jonatack: ACK daed542 code review and debug tested promag: Code review ACK daed542. MarcoFalke: re-ACK daed542, only change is removing second commit 🎴 theStack: Code Review ACK daed542 Tree-SHA512: ddebf410d114d9ad5a9e536950018ff333a347c035d74fcc101fb4a3f20a281782c7eac2b7d1bd1c8f6bc7e59f5b5630fb52c2e1b4c32df454fa584673bd021e
2 parents 7ce7f2b + daed542 commit 4fefd80

File tree

6 files changed

+115
-131
lines changed

6 files changed

+115
-131
lines changed

src/init.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1387,7 +1387,7 @@ bool AppInitMain(const util::Ref& context, NodeContext& node, interfaces::BlockA
13871387
node.chainman = &g_chainman;
13881388
ChainstateManager& chainman = *Assert(node.chainman);
13891389

1390-
node.peer_logic.reset(new PeerLogicValidation(node.connman.get(), node.banman.get(), *node.scheduler, chainman, *node.mempool));
1390+
node.peer_logic.reset(new PeerLogicValidation(*node.connman, node.banman.get(), *node.scheduler, chainman, *node.mempool));
13911391
RegisterValidationInterface(node.peer_logic.get());
13921392

13931393
// sanitize comments per BIP-0014, format user agent and check total size

0 commit comments

Comments
 (0)