diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-11-27 00:09:25 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2020-03-22 16:03:31 +0000 |
commit | 054b4c7f412013e33c80efa8e0f0f33944572a11 (patch) | |
tree | e0285a3b2b57187b15c6bc77680bf3d7a44fb446 /tests/unit_tests | |
parent | Merge pull request #6388 (diff) | |
download | monero-054b4c7f412013e33c80efa8e0f0f33944572a11.tar.xz |
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
Diffstat (limited to 'tests/unit_tests')
-rw-r--r-- | tests/unit_tests/node_server.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/unit_tests/node_server.cpp b/tests/unit_tests/node_server.cpp index c92f70b97..dff223ed3 100644 --- a/tests/unit_tests/node_server.cpp +++ b/tests/unit_tests/node_server.cpp @@ -91,6 +91,8 @@ public: bool prune_blockchain(uint32_t pruning_seed = 0) { return true; } bool is_within_compiled_block_hash_area(uint64_t height) const { return false; } bool has_block_weights(uint64_t height, uint64_t nblocks) const { return false; } + bool get_txpool_complement(const std::vector<crypto::hash> &hashes, std::vector<cryptonote::blobdata> &txes) { return false; } + bool get_pool_transaction_hashes(std::vector<crypto::hash>& txs, bool include_unrelayed_txes = true) const { return false; } void stop() {} }; |