Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F12944878
D15198.id44320.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
822 B
Subscribers
None
D15198.id44320.diff
View Options
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
Details
Attached
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)
Attached To
D15198: Fix a -Wshadow warning in net_processing.cpp
Event Timeline
Log In to Comment