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

Method __getattr__

test/functional/test_framework/test_node.py:134–140  ·  view source on GitHub ↗

Dispatches any unrecognised messages to the RPC connection or a CLI instance.

(self, name)

Source from the content-addressed store, hash-verified

132 self.process.kill()
133
134 def __getattr__(self, name):
135 """Dispatches any unrecognised messages to the RPC connection or a CLI instance."""
136 if self.use_cli:
137 return getattr(self.cli, name)
138 else:
139 assert self.rpc_connected and self.rpc is not None, self._node_msg("Error: no RPC connection")
140 return getattr(self.rpc, name)
141
142 def start(self, extra_args=None, *, stdout=None, stderr=None, **kwargs):
143 """Start the node."""

Callers

nothing calls this directly

Calls 1

_node_msgMethod · 0.95

Tested by

no test coverage detected