mirror of
https://github.com/monero-project/monero.git
synced 2025-08-11 22:00:20 -04:00
protocol: more sanity checks in new chain block hashes
This commit is contained in:
parent
a1eca8ca7e
commit
0aa541b361
8 changed files with 90 additions and 21 deletions
|
@ -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; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue