diff options
| author | Suhas Daftuar <[email protected]> | 2018-04-06 15:05:32 -0400 |
|---|---|---|
| committer | Suhas Daftuar <[email protected]> | 2018-04-08 10:44:40 -0400 |
| commit | 2b2b96cd452bd08537310ce78bee9cbf6f43c10e (patch) | |
| tree | 51db752a5c539d75e6e050ebe839ed8aa30191f9 /src | |
| parent | [rpcwallet] Clamp walletpassphrase value at 100M seconds (diff) | |
| download | discoin-2b2b96cd452bd08537310ce78bee9cbf6f43c10e.tar.xz discoin-2b2b96cd452bd08537310ce78bee9cbf6f43c10e.zip | |
Use std::bind instead of boost::bind to re-lock the wallet
Change suggested by Marco Falke.
Diffstat (limited to 'src')
| -rw-r--r-- | src/wallet/rpcwallet.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/wallet/rpcwallet.cpp b/src/wallet/rpcwallet.cpp index 09e8a3fba..29760a709 100644 --- a/src/wallet/rpcwallet.cpp +++ b/src/wallet/rpcwallet.cpp @@ -37,6 +37,8 @@ #include <univalue.h> +#include <functional> + static const std::string WALLET_ENDPOINT_BASE = "/wallet/"; CWallet *GetWalletForJSONRPCRequest(const JSONRPCRequest& request) @@ -2402,7 +2404,7 @@ UniValue walletpassphrase(const JSONRPCRequest& request) pwallet->TopUpKeyPool(); pwallet->nRelockTime = GetTime() + nSleepTime; - RPCRunLater(strprintf("lockwallet(%s)", pwallet->GetName()), boost::bind(LockWallet, pwallet), nSleepTime); + RPCRunLater(strprintf("lockwallet(%s)", pwallet->GetName()), std::bind(LockWallet, pwallet), nSleepTime); return NullUniValue; } |