diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2020-12-31 21:12:30 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2020-12-31 23:34:26 +0000 |
commit | 57f7c2e53fe4ba86fc5ac87ff0eb9c2bb389e936 (patch) | |
tree | 57b05e72c8a6fcb21ec0390f24586053fea3c142 /tests/unit_tests | |
parent | Merge pull request #7222 (diff) | |
download | monero-57f7c2e53fe4ba86fc5ac87ff0eb9c2bb389e936.tar.xz |
protocol: more sanity checks in new chain block hashes
Diffstat (limited to 'tests/unit_tests')
-rw-r--r-- | tests/unit_tests/node_server.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/unit_tests/node_server.cpp b/tests/unit_tests/node_server.cpp index 0569d3748..4d6f09e69 100644 --- a/tests/unit_tests/node_server.cpp +++ b/tests/unit_tests/node_server.cpp @@ -55,7 +55,8 @@ public: bool init(const boost::program_options::variables_map& vm) {return true ;} bool deinit(){return true;} bool get_short_chain_history(std::list<crypto::hash>& ids) const { return true; } - bool have_block(const crypto::hash& id) const {return true;} + bool have_block(const crypto::hash& id, int *where = NULL) const {return false;} + bool have_block_unlocked(const crypto::hash& id, int *where = NULL) const {return false;} void get_blockchain_top(uint64_t& height, crypto::hash& top_id)const{height=0;top_id=crypto::null_hash;} bool handle_incoming_tx(const cryptonote::tx_blob_entry& tx_blob, cryptonote::tx_verification_context& tvc, cryptonote::relay_method tx_relay, bool relayed) { return true; } bool handle_incoming_txs(const std::vector<cryptonote::tx_blob_entry>& tx_blob, std::vector<cryptonote::tx_verification_context>& tvc, cryptonote::relay_method tx_relay, bool relayed) { return true; } |