diff options
Diffstat (limited to 'src/txrequest.h')
-rw-r--r-- | src/txrequest.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/txrequest.h b/src/txrequest.h index e24390b6aa..a434901a52 100644 --- a/src/txrequest.h +++ b/src/txrequest.h @@ -192,6 +192,18 @@ public: /** Count how many announcements are being tracked in total across all peers and transaction hashes. */ size_t Size() const; + + /** Access to the internal priority computation (testing only) */ + uint64_t ComputePriority(const uint256& txhash, NodeId peer, bool preferred) const; + + /** Run internal consistency check (testing only). */ + void SanityCheck() const; + + /** Run a time-dependent internal consistency check (testing only). + * + * This can only be called immediately after GetRequestable, with the same 'now' parameter. + */ + void PostGetRequestableSanityCheck(std::chrono::microseconds now) const; }; #endif // BITCOIN_TXREQUEST_H |