MCPcopy Create free account
hub / github.com/ElementsProject/elements / EnsureWalletIsUnlocked

Function EnsureWalletIsUnlocked

src/wallet/rpc/util.cpp:80–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78}
79
80void EnsureWalletIsUnlocked(const CWallet& wallet)
81{
82 if (wallet.IsLocked()) {
83 throw JSONRPCError(RPC_WALLET_UNLOCK_NEEDED, "Error: Please enter the wallet passphrase with walletpassphrase first.");
84 }
85}
86
87WalletContext& EnsureWalletContext(const std::any& context)
88{

Callers 15

keypoolrefillFunction · 0.85
importprivkeyFunction · 0.85
importwalletFunction · 0.85
dumpprivkeyFunction · 0.85
dumpwalletFunction · 0.85
importmultiFunction · 0.85
importdescriptorsFunction · 0.85
listdescriptorsFunction · 0.85
SendMoneyFunction · 0.85
sendtoaddressFunction · 0.85
bumpfee_helperFunction · 0.85

Calls 2

JSONRPCErrorFunction · 0.85
IsLockedMethod · 0.80

Tested by

no test coverage detected