mirror of
https://github.com/monero-project/monero.git
synced 2024-12-13 20:06:32 +02:00
tests: fix tests builds after fluffy blocks merge
This commit is contained in:
parent
6a2bb62827
commit
2078cb6f2f
@ -89,5 +89,8 @@ namespace tests
|
|||||||
uint64_t get_target_blockchain_height() const { return 1; }
|
uint64_t get_target_blockchain_height() const { return 1; }
|
||||||
size_t get_block_sync_size() const { return BLOCKS_SYNCHRONIZING_DEFAULT_COUNT; }
|
size_t get_block_sync_size() const { return BLOCKS_SYNCHRONIZING_DEFAULT_COUNT; }
|
||||||
virtual void on_transaction_relayed(const cryptonote::blobdata& tx) {}
|
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<cryptonote::block>& blocks, std::list<cryptonote::transaction>& txs) const { return false; }
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -64,6 +64,9 @@ public:
|
|||||||
uint64_t get_target_blockchain_height() const { return 1; }
|
uint64_t get_target_blockchain_height() const { return 1; }
|
||||||
size_t get_block_sync_size() const { return BLOCKS_SYNCHRONIZING_DEFAULT_COUNT; }
|
size_t get_block_sync_size() const { return BLOCKS_SYNCHRONIZING_DEFAULT_COUNT; }
|
||||||
virtual void on_transaction_relayed(const cryptonote::blobdata& tx) {}
|
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<cryptonote::block>& blocks, std::list<cryptonote::transaction>& txs) const { return false; }
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef nodetool::node_server<cryptonote::t_cryptonote_protocol_handler<test_core>> Server;
|
typedef nodetool::node_server<cryptonote::t_cryptonote_protocol_handler<test_core>> Server;
|
||||||
|
Loading…
Reference in New Issue
Block a user