aboutsummaryrefslogtreecommitdiff
path: root/tests/core_proxy/core_proxy.h
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2020-12-31 21:12:30 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2020-12-31 23:33:18 +0000
commit0aa541b3617563d41644e7d0beeb8e4e8325fd6d (patch)
tree0980ba990f9a6b4eaf6136e200cb4b3ed8034f36 /tests/core_proxy/core_proxy.h
parentMerge pull request #7221 (diff)
downloadmonero-0aa541b3617563d41644e7d0beeb8e4e8325fd6d.tar.xz
protocol: more sanity checks in new chain block hashes
Diffstat (limited to 'tests/core_proxy/core_proxy.h')
-rw-r--r--tests/core_proxy/core_proxy.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/core_proxy/core_proxy.h b/tests/core_proxy/core_proxy.h
index ebc3a89c2..94f148e8c 100644
--- a/tests/core_proxy/core_proxy.h
+++ b/tests/core_proxy/core_proxy.h
@@ -74,7 +74,8 @@ namespace tests
bool init(const boost::program_options::variables_map& vm);
bool deinit(){return true;}
bool get_short_chain_history(std::list<crypto::hash>& ids);
- bool have_block(const crypto::hash& id);
+ bool have_block(const crypto::hash& id, int *where = NULL);
+ bool have_block_unlocked(const crypto::hash& id, int *where = NULL);
void get_blockchain_top(uint64_t& height, crypto::hash& top_id);
bool handle_incoming_tx(const cryptonote::tx_blob_entry& tx_blob, cryptonote::tx_verification_context& tvc, cryptonote::relay_method tx_relay, bool relayed);
bool handle_incoming_txs(const std::vector<cryptonote::tx_blob_entry>& tx_blobs, std::vector<cryptonote::tx_verification_context>& tvc, cryptonote::relay_method tx_relay, bool relayed);