MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / GetLabelDestination

Function GetLabelDestination

src/wallet/rpcwallet.cpp:199–207  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

197}
198
199CTxDestination 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
209static UniValue getaccountaddress(const JSONRPCRequest& request)
210{

Callers 2

getaccountaddressFunction · 0.85
setlabelFunction · 0.85

Calls 2

JSONRPCErrorFunction · 0.85
GetLabelDestinationMethod · 0.80

Tested by

no test coverage detected