From 054b4c7f412013e33c80efa8e0f0f33944572a11 Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Wed, 27 Nov 2019 00:09:25 +0000 Subject: protocol: request txpool contents when synced A newly synced Alice sends a (typically quite small) list of txids in the local tpxool to a random peer Bob, who then uses the existing tx relay system to send Alice any tx in his txpool which is not in the list Alice sent --- src/cryptonote_core/cryptonote_core.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/cryptonote_core/cryptonote_core.cpp') diff --git a/src/cryptonote_core/cryptonote_core.cpp b/src/cryptonote_core/cryptonote_core.cpp index 8b1613b4b..de60367e6 100644 --- a/src/cryptonote_core/cryptonote_core.cpp +++ b/src/cryptonote_core/cryptonote_core.cpp @@ -1946,6 +1946,12 @@ namespace cryptonote { m_blockchain_storage.flush_invalid_blocks(); } + //----------------------------------------------------------------------------------------------- + bool core::get_txpool_complement(const std::vector &hashes, std::vector &txes) + { + return m_mempool.get_complement(hashes, txes); + } + //----------------------------------------------------------------------------------------------- bool core::update_blockchain_pruning() { return m_blockchain_storage.update_blockchain_pruning(); -- cgit v1.2.3