MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / RpcWalletName

Function RpcWalletName

src/bitcoin-cli.cpp:183–188  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

181}
182
183std::optional<std::string> RpcWalletName(const ArgsManager& args)
184{
185 // Check IsArgNegated to return nullopt instead of "0" if -norpcwallet is specified
186 if (args.IsArgNegated("-rpcwallet")) return std::nullopt;
187 return args.GetArg("-rpcwallet");
188}
189
190//
191// Exception thrown on connection error. This error is used to determine

Callers 2

GetNewAddressFunction · 0.85
CommandLineRPCFunction · 0.85

Calls 2

IsArgNegatedMethod · 0.80
GetArgMethod · 0.80

Tested by

no test coverage detected