From 5b8344e8f85ae6335d594465ba5b8fbe9a73ee96 Mon Sep 17 00:00:00 2001 From: Alexander Block Date: Fri, 1 Mar 2019 16:10:24 +0100 Subject: [PATCH] Use scheduleFromNow instead of schedule+boost::chrono --- src/llmq/quorums_instantsend.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/llmq/quorums_instantsend.cpp b/src/llmq/quorums_instantsend.cpp index db84906752688..21eaf63f2266e 100644 --- a/src/llmq/quorums_instantsend.cpp +++ b/src/llmq/quorums_instantsend.cpp @@ -382,9 +382,9 @@ void CInstantSendManager::ProcessMessageInstantXLock(CNode* pfrom, const llmq::C if (!hasScheduledProcessPending) { hasScheduledProcessPending = true; - scheduler->schedule([&] { + scheduler->scheduleFromNow([&] { ProcessPendingInstantXLocks(); - }, boost::chrono::system_clock::now() + boost::chrono::milliseconds(100)); + }, 100); } }