Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14864970
D14553.id42438.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
D14553.id42438.diff
View Options
diff --git a/src/net.h b/src/net.h
--- a/src/net.h
+++ b/src/net.h
@@ -679,7 +679,7 @@
// How much faulty messages did this node accumulate
std::atomic<int> m_avalanche_message_fault_counter{0};
- std::chrono::time_point<std::chrono::steady_clock> last_poll{};
+ std::chrono::time_point<std::chrono::steady_clock> m_last_poll{};
/**
* UNIX epoch time of the last block received from this peer that we had
diff --git a/src/net_processing.cpp b/src/net_processing.cpp
--- a/src/net_processing.cpp
+++ b/src/net_processing.cpp
@@ -5037,11 +5037,11 @@
int64_t cooldown =
gArgs.GetIntArg("-avacooldown", AVALANCHE_DEFAULT_COOLDOWN);
- if (now < pfrom.last_poll + std::chrono::milliseconds(cooldown)) {
+ if (now < pfrom.m_last_poll + std::chrono::milliseconds(cooldown)) {
Misbehaving(pfrom, 20, "avapool-cooldown");
}
- pfrom.last_poll = now;
+ pfrom.m_last_poll = now;
const bool quorum_established =
g_avalanche && g_avalanche->isQuorumEstablished();
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, May 20, 23:44 (31 m, 43 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5862411
Default Alt Text
D14553.id42438.diff (1 KB)
Attached To
D14553: [avalanche] Rename CNode's last_poll member to m_last_poll
Event Timeline
Log In to Comment