Skip to content

Commit 2b2b96c

Browse files
committed
Use std::bind instead of boost::bind to re-lock the wallet
Change suggested by Marco Falke.
1 parent 662d19f commit 2b2b96c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/wallet/rpcwallet.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@
3737

3838
#include <univalue.h>
3939

40+
#include <functional>
41+
4042
static const std::string WALLET_ENDPOINT_BASE = "/wallet/";
4143

4244
CWallet *GetWalletForJSONRPCRequest(const JSONRPCRequest& request)
@@ -2402,7 +2404,7 @@ UniValue walletpassphrase(const JSONRPCRequest& request)
24022404
pwallet->TopUpKeyPool();
24032405

24042406
pwallet->nRelockTime = GetTime() + nSleepTime;
2405-
RPCRunLater(strprintf("lockwallet(%s)", pwallet->GetName()), boost::bind(LockWallet, pwallet), nSleepTime);
2407+
RPCRunLater(strprintf("lockwallet(%s)", pwallet->GetName()), std::bind(LockWallet, pwallet), nSleepTime);
24062408

24072409
return NullUniValue;
24082410
}

0 commit comments

Comments
 (0)