diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2020-12-25 20:29:11 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2020-12-25 20:30:39 +0000 |
commit | efe83982d33aaa63c31feb4cf4864a219ead45db (patch) | |
tree | 760a25196011b6324614591cae359a7e00104b2d /src/cryptonote_protocol/cryptonote_protocol_handler.h | |
parent | Merge pull request #7151 (diff) | |
download | monero-efe83982d33aaa63c31feb4cf4864a219ead45db.tar.xz |
protocol: drop nodes if they claim new data but only give stale data
Some joker is spending time actually doing this
Diffstat (limited to 'src/cryptonote_protocol/cryptonote_protocol_handler.h')
-rw-r--r-- | src/cryptonote_protocol/cryptonote_protocol_handler.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cryptonote_protocol/cryptonote_protocol_handler.h b/src/cryptonote_protocol/cryptonote_protocol_handler.h index 8f867eee6..28530f3e7 100644 --- a/src/cryptonote_protocol/cryptonote_protocol_handler.h +++ b/src/cryptonote_protocol/cryptonote_protocol_handler.h @@ -150,7 +150,7 @@ namespace cryptonote bool update_sync_search(); int try_add_next_blocks(cryptonote_connection_context &context); void notify_new_stripe(cryptonote_connection_context &context, uint32_t stripe); - void skip_unneeded_hashes(cryptonote_connection_context& context, bool check_block_queue) const; + size_t skip_unneeded_hashes(cryptonote_connection_context& context, bool check_block_queue) const; bool request_txpool_complement(cryptonote_connection_context &context); void hit_score(cryptonote_connection_context &context, int32_t score); |