| 78 | } |
| 79 | |
| 80 | void 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 | |
| 87 | WalletContext& EnsureWalletContext(const std::any& context) |
| 88 | { |
no test coverage detected