aboutsummaryrefslogtreecommitdiff
path: root/tests/unit_tests/node_server.cpp
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2020-12-15 12:50:38 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2020-12-17 02:54:02 +0000
commitcf7e1571d33980362f1a03f81124fc37a07aa0f0 (patch)
treef20deee5a798f3665bcb618a30e9c28cc2f77c89 /tests/unit_tests/node_server.cpp
parentprotocol: drop peers we can't download anything from in sync mode (diff)
downloadmonero-cf7e1571d33980362f1a03f81124fc37a07aa0f0.tar.xz
protocol: reject claimed block hashes that already are in the chain
Diffstat (limited to 'tests/unit_tests/node_server.cpp')
-rw-r--r--tests/unit_tests/node_server.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/unit_tests/node_server.cpp b/tests/unit_tests/node_server.cpp
index 0191e5aa4..0569d3748 100644
--- a/tests/unit_tests/node_server.cpp
+++ b/tests/unit_tests/node_server.cpp
@@ -93,6 +93,7 @@ public:
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; }
+ crypto::hash get_block_id_by_height(uint64_t height) const { return crypto::null_hash; }
void stop() {}
};