net: add GetOrphanTransactions() to PeerManager

Updates PeerManager (and Impl) to provide
orphans with metadata
This commit is contained in:
tdb3
2024-09-18 12:28:04 -04:00
parent 91b65adff2
commit 532491faf1
4 changed files with 22 additions and 0 deletions

View File

@@ -7,6 +7,7 @@
#define BITCOIN_NET_PROCESSING_H
#include <net.h>
#include <txorphanage.h>
#include <validationinterface.h>
#include <chrono>
@@ -99,6 +100,8 @@ public:
/** Get statistics from node state */
virtual bool GetNodeStateStats(NodeId nodeid, CNodeStateStats& stats) const = 0;
virtual std::vector<TxOrphanage::OrphanTxBase> GetOrphanTransactions() = 0;
/** Get peer manager info. */
virtual PeerManagerInfo GetInfo() const = 0;