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

Method get_wallet_rpc

test/functional/test_framework/test_node.py:196–202  ·  view source on GitHub ↗
(self, wallet_name)

Source from the content-addressed store, hash-verified

194 self._raise_assertion_error("Unable to connect to bitcoind")
195
196 def get_wallet_rpc(self, wallet_name):
197 if self.use_cli:
198 return self.cli("-rpcwallet={}".format(wallet_name))
199 else:
200 assert self.rpc_connected and self.rpc, self._node_msg("RPC not connected")
201 wallet_path = "wallet/{}".format(urllib.parse.quote(wallet_name))
202 return self.rpc / wallet_path
203
204 def stop_node(self, expected_stderr=''):
205 """Stop the node."""

Callers 3

run_testMethod · 0.80
run_testMethod · 0.80
run_testMethod · 0.80

Calls 2

_node_msgMethod · 0.95
formatMethod · 0.80

Tested by

no test coverage detected