aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/load.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/wallet/load.cpp')
-rw-r--r--src/wallet/load.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/wallet/load.cpp b/src/wallet/load.cpp
index 4cdfadbee2..8b78a670e4 100644
--- a/src/wallet/load.cpp
+++ b/src/wallet/load.cpp
@@ -141,7 +141,7 @@ bool LoadWallets(WalletContext& context)
}
}
-void StartWallets(WalletContext& context, CScheduler& scheduler)
+void StartWallets(WalletContext& context)
{
for (const std::shared_ptr<CWallet>& pwallet : GetWallets(context)) {
pwallet->postInitProcess();
@@ -149,9 +149,9 @@ void StartWallets(WalletContext& context, CScheduler& scheduler)
// Schedule periodic wallet flushes and tx rebroadcasts
if (context.args->GetBoolArg("-flushwallet", DEFAULT_FLUSHWALLET)) {
- scheduler.scheduleEvery([&context] { MaybeCompactWalletDB(context); }, std::chrono::milliseconds{500});
+ context.scheduler->scheduleEvery([&context] { MaybeCompactWalletDB(context); }, 500ms);
}
- scheduler.scheduleEvery([&context] { MaybeResendWalletTxs(context); }, 1min);
+ context.scheduler->scheduleEvery([&context] { MaybeResendWalletTxs(context); }, 1min);
}
void FlushWallets(WalletContext& context)