| 197 | } |
| 198 | |
| 199 | CTxDestination GetLabelDestination(CWallet* const pwallet, const std::string& label, bool bForceNew=false) |
| 200 | { |
| 201 | CTxDestination dest; |
| 202 | if (!pwallet->GetLabelDestination(dest, label, bForceNew)) { |
| 203 | throw JSONRPCError(RPC_WALLET_KEYPOOL_RAN_OUT, "Error: Keypool ran out, please call keypoolrefill first"); |
| 204 | } |
| 205 | |
| 206 | return dest; |
| 207 | } |
| 208 | |
| 209 | static UniValue getaccountaddress(const JSONRPCRequest& request) |
| 210 | { |
no test coverage detected