test: rename .rpc to ._rpc and remove unnecessary uses

It is usually not necessary, and makes it impossible to use --usecli
This commit is contained in:
Martin Zumsande
2025-04-15 15:48:26 -04:00
parent 5b08885986
commit 8f8ce9e174
7 changed files with 20 additions and 20 deletions

View File

@@ -593,7 +593,7 @@ class BitcoinTestFramework(metaclass=BitcoinTestMetaClass):
node.wait_for_rpc_connection()
if self.options.coveragedir is not None:
coverage.write_all_rpc_commands(self.options.coveragedir, node.rpc)
coverage.write_all_rpc_commands(self.options.coveragedir, node._rpc)
def start_nodes(self, extra_args=None, *args, **kwargs):
"""Start multiple bitcoinds"""
@@ -608,7 +608,7 @@ class BitcoinTestFramework(metaclass=BitcoinTestMetaClass):
if self.options.coveragedir is not None:
for node in self.nodes:
coverage.write_all_rpc_commands(self.options.coveragedir, node.rpc)
coverage.write_all_rpc_commands(self.options.coveragedir, node._rpc)
def stop_node(self, i, expected_stderr='', wait=0):
"""Stop a bitcoind test node"""