diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-08-18 20:14:23 +0100 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-08-21 21:57:19 +0100 |
commit | 70b8c6d77a6aaf90a6e84f3ec6f25bea3b163c40 (patch) | |
tree | d533e90a67366fd3a6778bb6f3da82bbe0a7d326 /src/p2p/net_node.inl | |
parent | Merge pull request #2303 (diff) | |
download | monero-70b8c6d77a6aaf90a6e84f3ec6f25bea3b163c40.tar.xz |
cryptonote_protocol: misc fixes to the new sync algorithm
Fix sync wedge corner case:
It could happen if a connection went into standby mode, while
it was the one which had requested the next span, and that span
was still waiting for the data, and that peer is not on the
main chain. Other peers can then start asking for that data
again and again, but never get it as only that forked peer does.
And various other fixes
Diffstat (limited to 'src/p2p/net_node.inl')
-rw-r--r-- | src/p2p/net_node.inl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/p2p/net_node.inl b/src/p2p/net_node.inl index e179fc14f..4dd7dbf87 100644 --- a/src/p2p/net_node.inl +++ b/src/p2p/net_node.inl @@ -1795,6 +1795,8 @@ namespace nodetool m_peerlist.remove_from_peer_anchor(na); } + m_payload_handler.on_connection_close(context); + MINFO("["<< epee::net_utils::print_connection_context(context) << "] CLOSE CONNECTION"); } |