From 2078cb6f2f09da6fa5d8b2ff9d83e849cc734090 Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Fri, 11 Nov 2016 18:16:13 +0000 Subject: [PATCH] tests: fix tests builds after fluffy blocks merge --- tests/core_proxy/core_proxy.h | 3 +++ tests/unit_tests/ban.cpp | 3 +++ 2 files changed, 6 insertions(+) diff --git a/tests/core_proxy/core_proxy.h b/tests/core_proxy/core_proxy.h index a265ef1c..31e876d0 100644 --- a/tests/core_proxy/core_proxy.h +++ b/tests/core_proxy/core_proxy.h @@ -89,5 +89,8 @@ namespace tests uint64_t get_target_blockchain_height() const { return 1; } size_t get_block_sync_size() const { return BLOCKS_SYNCHRONIZING_DEFAULT_COUNT; } virtual void on_transaction_relayed(const cryptonote::blobdata& tx) {} + bool get_testnet() const { return false; } + bool get_pool_transaction(const crypto::hash& id, cryptonote::transaction& tx) const { return false; } + bool get_blocks(uint64_t start_offset, size_t count, std::list& blocks, std::list& txs) const { return false; } }; } diff --git a/tests/unit_tests/ban.cpp b/tests/unit_tests/ban.cpp index e8266154..6b3f029d 100644 --- a/tests/unit_tests/ban.cpp +++ b/tests/unit_tests/ban.cpp @@ -64,6 +64,9 @@ public: uint64_t get_target_blockchain_height() const { return 1; } size_t get_block_sync_size() const { return BLOCKS_SYNCHRONIZING_DEFAULT_COUNT; } virtual void on_transaction_relayed(const cryptonote::blobdata& tx) {} + bool get_testnet() const { return false; } + bool get_pool_transaction(const crypto::hash& id, cryptonote::transaction& tx) const { return false; } + bool get_blocks(uint64_t start_offset, size_t count, std::list& blocks, std::list& txs) const { return false; } }; typedef nodetool::node_server> Server;