[net processing] Move mapNodeState into PeerManagerImpl

This commit is contained in:
dergoegge
2022-02-20 15:20:15 +01:00
parent 37ecaf3e7a
commit a292df283a
3 changed files with 27 additions and 13 deletions

View File

@@ -87,6 +87,9 @@ public:
/** Process a single message from a peer. Public for fuzz testing */
virtual void ProcessMessage(CNode& pfrom, const std::string& msg_type, CDataStream& vRecv,
const std::chrono::microseconds time_received, const std::atomic<bool>& interruptMsgProc) = 0;
/** This function is used for testing the stale tip eviction logic, see denialofservice_tests.cpp */
virtual void UpdateLastBlockAnnounceTime(NodeId node, int64_t time_in_seconds) = 0;
};
#endif // BITCOIN_NET_PROCESSING_H