aboutsummaryrefslogtreecommitdiff
path: root/src/net_processing.cpp
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2020-03-06 18:06:50 -0500
committerMarcoFalke <falke.marco@gmail.com>2020-03-10 09:47:32 -0400
commitfadafb83cff9a9a340eac1b5a853e2467d5e0ef7 (patch)
tree62583dfe70fc70cfde198ca12c1872ef79adc5a6 /src/net_processing.cpp
parentfa70ccc6c4e304646b4610228f3975b3a9762643 (diff)
downloadbitcoin-fadafb83cff9a9a340eac1b5a853e2467d5e0ef7.tar.xz
scheduler: Make schedule* methods type safe
Diffstat (limited to 'src/net_processing.cpp')
-rw-r--r--src/net_processing.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net_processing.cpp b/src/net_processing.cpp
index fa09b60630..b9f77685ab 100644
--- a/src/net_processing.cpp
+++ b/src/net_processing.cpp
@@ -1124,7 +1124,7 @@ PeerLogicValidation::PeerLogicValidation(CConnman* connmanIn, BanMan* banman, CS
// combine them in one function and schedule at the quicker (peer-eviction)
// timer.
static_assert(EXTRA_PEER_CHECK_INTERVAL < STALE_CHECK_INTERVAL, "peer eviction timer should be less than stale tip check timer");
- scheduler.scheduleEvery(std::bind(&PeerLogicValidation::CheckForStaleTipAndEvictPeers, this, consensusParams), EXTRA_PEER_CHECK_INTERVAL * 1000);
+ scheduler.scheduleEvery([&] { this->CheckForStaleTipAndEvictPeers(consensusParams); }, std::chrono::seconds{EXTRA_PEER_CHECK_INTERVAL});
}
/**