Page MenuHomePhabricator

D14553.id42438.diff
No OneTemporary

D14553.id42438.diff

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

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)

Event Timeline