diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2021-10-21 20:34:06 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2021-10-21 20:34:06 +0000 |
commit | 1f81f5f5c1e65581ec66207e763df13efc2cad12 (patch) | |
tree | 6e6aa6b5eb1e46240a857969298f68d38293e287 /src/cryptonote_protocol/cryptonote_protocol_handler.inl | |
parent | Merge pull request #8001 (diff) | |
download | monero-1f81f5f5c1e65581ec66207e763df13efc2cad12.tar.xz |
protocol: fix spurious rejection of downloaded blocks
when kicking a peer for inactivity, clear the set of requested blocks,
or next time we requests blocks from it, we'll probably reject the
incoming blocks due to missing the previous requested blocks
Diffstat (limited to '')
-rw-r--r-- | src/cryptonote_protocol/cryptonote_protocol_handler.inl | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cryptonote_protocol/cryptonote_protocol_handler.inl b/src/cryptonote_protocol/cryptonote_protocol_handler.inl index 106253082..39d562fd1 100644 --- a/src/cryptonote_protocol/cryptonote_protocol_handler.inl +++ b/src/cryptonote_protocol/cryptonote_protocol_handler.inl @@ -153,6 +153,7 @@ namespace cryptonote context.m_last_request_time = boost::date_time::not_a_date_time; context.m_expect_response = 0; context.m_expect_height = 0; + context.m_requested_objects.clear(); context.m_state = cryptonote_connection_context::state_standby; // we'll go back to adding, then (if we can't), download } else |