aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/rpcdump.cpp
diff options
context:
space:
mode:
authorHennadii Stepanov <[email protected]>2020-05-28 09:55:39 +0300
committerHennadii Stepanov <[email protected]>2020-05-28 09:55:39 +0300
commit9cc6eb3c9e0eb1d5be26fb81cc5595c131fec8f4 (patch)
treec0aa1be553ac3713d8832edb6eeba7a08b223360 /src/wallet/rpcdump.cpp
parentUse template function instead of void* parameter (diff)
downloaddiscoin-9cc6eb3c9e0eb1d5be26fb81cc5595c131fec8f4.tar.xz
discoin-9cc6eb3c9e0eb1d5be26fb81cc5595c131fec8f4.zip
Get rid of -Wthread-safety-precise warnings
Diffstat (limited to 'src/wallet/rpcdump.cpp')
-rw-r--r--src/wallet/rpcdump.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wallet/rpcdump.cpp b/src/wallet/rpcdump.cpp
index 7bf3d169c..d5f6d63a4 100644
--- a/src/wallet/rpcdump.cpp
+++ b/src/wallet/rpcdump.cpp
@@ -746,7 +746,7 @@ UniValue dumpwallet(const JSONRPCRequest& request)
// the user could have gotten from another RPC command prior to now
wallet.BlockUntilSyncedToCurrentChain();
- LOCK2(pwallet->cs_wallet, spk_man.cs_KeyStore);
+ LOCK2(wallet.cs_wallet, spk_man.cs_KeyStore);
EnsureWalletIsUnlocked(&wallet);
@@ -769,7 +769,7 @@ UniValue dumpwallet(const JSONRPCRequest& request)
std::map<CKeyID, int64_t> mapKeyBirth;
const std::map<CKeyID, int64_t>& mapKeyPool = spk_man.GetAllReserveKeys();
- pwallet->GetKeyBirthTimes(mapKeyBirth);
+ wallet.GetKeyBirthTimes(mapKeyBirth);
std::set<CScriptID> scripts = spk_man.GetCScripts();