aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2021-10-25 19:03:13 -0500
committerluigi1111 <luigi1111w@gmail.com>2021-10-25 19:03:13 -0500
commitfce167d7cc53bb65fa13a6326464924c1d547dff (patch)
treee0cf1bf530c63f2e85823c507ec62ff51cec2af9
parentMerge pull request #8007 (diff)
parentprotocol: fix spurious rejection of downloaded blocks (diff)
downloadmonero-fce167d7cc53bb65fa13a6326464924c1d547dff.tar.xz
Merge pull request #8022
6c084e1 protocol: fix spurious rejection of downloaded blocks (moneromooo-monero)
-rw-r--r--src/cryptonote_protocol/cryptonote_protocol_handler.inl1
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 6dc6bf274..719f9dde9 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