protocol: drop nodes if they claim new data but only give stale data

Some joker is spending time actually doing this
This commit is contained in:
moneromooo-monero 2020-12-25 20:29:11 +00:00
parent 3bd6ed94d7
commit efe83982d3
No known key found for this signature in database
GPG key ID: 686F07454D6CEFC3
3 changed files with 18 additions and 5 deletions

View file

@ -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);