mirror of
https://github.com/Retropex/bitcoin.git
synced 2025-05-12 19:20:42 +02:00
interfaces: Expose raw CTxMemPool via interfaces::Node
This commit is contained in:
parent
30722fe358
commit
ae48796951
@ -27,6 +27,7 @@ class BanMan;
|
||||
class CFeeRate;
|
||||
class CNetAddr;
|
||||
class CNodeStats;
|
||||
class CTxMemPool;
|
||||
class Coin;
|
||||
class RPCTimerInterface;
|
||||
class UniValue;
|
||||
@ -161,6 +162,8 @@ public:
|
||||
//! Get total bytes sent.
|
||||
virtual int64_t getTotalBytesSent() = 0;
|
||||
|
||||
virtual CTxMemPool& mempool() = 0;
|
||||
|
||||
//! Get mempool size.
|
||||
virtual size_t getMempoolSize() = 0;
|
||||
|
||||
|
@ -409,6 +409,7 @@ public:
|
||||
}
|
||||
ArgsManager& args() { return *Assert(Assert(m_context)->args); }
|
||||
ChainstateManager& chainman() { return *Assert(m_context->chainman); }
|
||||
CTxMemPool& mempool() override { return *Assert(m_context->mempool); }
|
||||
NodeContext* m_context{nullptr};
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user