-
Notifications
You must be signed in to change notification settings - Fork 1.2k
test: RPC coverage linter + related fixes for listaddressbalances #7279
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 6 commits
afa9b91
f6c66c8
4b1a335
2b3cdfb
ff4302f
53cd792
c27ba87
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -144,6 +144,7 @@ def __init__(self): | |
| self._requires_wallet = False | ||
| # Disable ThreadOpenConnections by default, so that adding entries to | ||
| # addrman will not result in automatic connections to them. | ||
| self.uses_wallet = False | ||
|
Comment on lines
144
to
+147
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🟡 Suggestion: Two overlapping wallet flags:
source: unknown 🤖 Fix this with AI agents |
||
| self.disable_autoconnect = True | ||
| self.set_test_params() | ||
| assert self.wallet_names is None or len(self.wallet_names) <= self.num_nodes | ||
|
|
@@ -577,6 +578,7 @@ def get_bin_from_version(version, bin_name, bin_default): | |
| use_valgrind=self.options.valgrind, | ||
| descriptors=self.options.descriptors, | ||
| v2transport=self.options.v2transport, | ||
| uses_wallet=self.uses_wallet, | ||
| ) | ||
| self.nodes.append(test_node_i) | ||
| if not test_node_i.version_is_at_least(160000): | ||
|
|
@@ -955,7 +957,7 @@ def _initialize_chain(self): | |
| cache_node_dir, | ||
| chain=self.chain, | ||
| extra_conf=["bind=127.0.0.1"], | ||
| extra_args=['-disablewallet', f"-mocktime={TIME_GENESIS_BLOCK}"], | ||
| extra_args=[f"-mocktime={TIME_GENESIS_BLOCK}"], | ||
| extra_args_from_options=self.extra_args_from_options, | ||
| rpchost=None, | ||
| timewait=self.rpc_timeout, | ||
|
|
@@ -966,6 +968,7 @@ def _initialize_chain(self): | |
| coverage_dir=None, | ||
| cwd=self.options.tmpdir, | ||
| descriptors=self.options.descriptors, | ||
| uses_wallet=self.uses_wallet, | ||
| )) | ||
| self.start_node(CACHE_NODE_ID) | ||
| cache_node = self.nodes[CACHE_NODE_ID] | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -69,7 +69,7 @@ class TestNode(): | |
| To make things easier for the test writer, any unrecognised messages will | ||
| be dispatched to the RPC connection.""" | ||
|
|
||
| def __init__(self, i, datadir, extra_args_from_options, *, chain, rpchost, timewait, timeout_factor, bitcoind, bitcoin_cli, mocktime, coverage_dir, cwd, extra_conf=None, extra_args=None, use_cli=False, start_perf=False, use_valgrind=False, version=None, descriptors=False, v2transport=False): | ||
| def __init__(self, i, datadir, extra_args_from_options, *, chain, rpchost, timewait, timeout_factor, bitcoind, bitcoin_cli, mocktime, coverage_dir, cwd, extra_conf=None, extra_args=None, use_cli=False, start_perf=False, use_valgrind=False, version=None, descriptors=False, v2transport=False, uses_wallet=False): | ||
| """ | ||
| Kwargs: | ||
| start_perf (bool): If True, begin profiling the node with `perf` as soon as | ||
|
|
@@ -114,7 +114,7 @@ def __init__(self, i, datadir, extra_args_from_options, *, chain, rpchost, timew | |
| if self.mocktime != 0: | ||
| self.args.append(f"-mocktime={mocktime}") | ||
|
|
||
| if self.descriptors is None: | ||
| if uses_wallet is not None and not uses_wallet and self.descriptors is None: | ||
| self.args.append("-disablewallet") | ||
|
Comment on lines
72
to
118
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💬 Nitpick: Partial backport of bitcoin#28710 bitcoin#33064 relies on the source: ['claude'] |
||
|
|
||
| # Use valgrind, expect for previous release binaries | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.