Page MenuHomePhabricator

D15198.id44320.diff
No OneTemporary

D15198.id44320.diff

diff --git a/src/net_processing.cpp b/src/net_processing.cpp
--- a/src/net_processing.cpp
+++ b/src/net_processing.cpp
@@ -3509,10 +3509,10 @@
// one.
NodeId peer_best{-1};
const HeadersPresyncStats *stat_best{nullptr};
- for (const auto &[peer, stat] : m_headers_presync_stats) {
- if (!stat_best || stat > *stat_best) {
- peer_best = peer;
- stat_best = &stat;
+ for (const auto &[_peer, _stat] : m_headers_presync_stats) {
+ if (!stat_best || _stat > *stat_best) {
+ peer_best = _peer;
+ stat_best = &_stat;
}
}
m_headers_presync_bestpeer = peer_best;

File Metadata

Mime Type
text/plain
Expires
Thu, Feb 6, 15:50 (16 h, 48 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5082317
Default Alt Text
D15198.id44320.diff (822 B)

Event Timeline