aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2021-10-25 19:02:22 -0500
committerluigi1111 <luigi1111w@gmail.com>2021-10-25 19:02:22 -0500
commitff96482e38a9bc4c91af77f9089991a1fcab2ee3 (patch)
tree66f1363ba753e66902cb2f22952dd84e47fcda42
parent919e06bbfd4666558153bdee74e3f40c231f34ad (diff)
parent1f81f5f5c1e65581ec66207e763df13efc2cad12 (diff)
downloadmonzero-core-ff96482e38a9bc4c91af77f9089991a1fcab2ee3.tar.gz
monzero-core-ff96482e38a9bc4c91af77f9089991a1fcab2ee3.tar.xz
monzero-core-ff96482e38a9bc4c91af77f9089991a1fcab2ee3.zip
Merge pull request #8018
1f81f5f 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 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