diff options
author | Anthony Towns <aj@erisian.com.au> | 2023-05-13 12:49:49 +1000 |
---|---|---|
committer | Anthony Towns <aj@erisian.com.au> | 2023-08-03 20:56:41 +1000 |
commit | 6ec1809d33bfc42b80cb6f35625dccd56be8d507 (patch) | |
tree | 998b2936e86e414a081a42b3997825a2e4bef3cb /src/txmempool.h | |
parent | a70beafdb22564043dc24fc98133fdadbaf77d8a (diff) |
net_processing: drop m_recently_announced_invs bloom filter
Rather than using a bloom filter to track announced invs, simply allow
a peer to request any tx that entered the mempool prior to the last INV
message we sent them. This also obsoletes the UNCONDITIONAL_RELAY_DELAY.
Diffstat (limited to 'src/txmempool.h')
-rw-r--r-- | src/txmempool.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/txmempool.h b/src/txmempool.h index 846def02cd..74bdc68fde 100644 --- a/src/txmempool.h +++ b/src/txmempool.h @@ -708,6 +708,10 @@ public: return mapTx.project<0>(mapTx.get<index_by_wtxid>().find(wtxid)); } TxMempoolInfo info(const GenTxid& gtxid) const; + + /** Returns info for a transaction if its entry_sequence < last_sequence */ + TxMempoolInfo info_for_relay(const GenTxid& gtxid, uint64_t last_sequence) const; + std::vector<TxMempoolInfo> infoAll() const; size_t DynamicMemoryUsage() const; |