Skip to content
Bitcoin Roots

v31.1-roots.1 · Commit 4: [PATCH 04/17] feat(mining): preserve Roots priority and template policies

test/functional/feature_policy_args.py

Before: test/functional/feature_policy_args.py · After: test/functional/feature_policy_args.py

File metadata
index 223daba54f5c3c1e4ad9d9d64fdc5796708cd564..a7afa797b1b3e7a350f97008586c39037f9a58f4 100755

Download original patch · Release notes

Diff rows 1–24 of 24. Line numbers refer to the original before/after files.

+ Added− RemovedUnmarked lines are context.

Scroll the code area horizontally to read long lines. Before is on the left; after is on the right. Unified view fits narrow screens more easily.

test/functional/feature_policy_args.py CHANGED
@@ -34,23 +34,7 @@ class PolicyArgsTest(BitcoinTestFramework):
34
  config_path.write_text(default_config + base_config + config, encoding="utf-8")
35
  self.start_node(0, extra_args=cli or [])
36
  assert_equal(node.getblockchaininfo()["chain"], "regtest")
37
- # Staged controls must visibly warn; verify the complete diagnostic.
38
- staged = ["blockmaxsize", "blockprioritysize"]
39
- supplied = set()
40
- for arg in cli or []:
41
- name = arg.split("=", 1)[0].lstrip("-")
42
- supplied.add(name[2:] if name.startswith("no") else name)
43
- for line in (default_config + config).splitlines():
44
- name = line.split("=", 1)[0].strip()
45
- supplied.add(name[2:] if name.startswith("no") else name)
46
- settings_path = node.chain_path / "settings.json"
47
- if settings_path.exists():
48
- supplied.update(json.loads(settings_path.read_text(encoding="utf-8")))
49
- expected = "\n".join(
50
- f"Warning: -{name} is parsed but not enforced in this staged candidate; graph policy and mining implementations are pending."
51
- for name in staged if name in supplied
52
- )
53
- self.stop_node(0, expected_stderr=expected)
54
  passed_startups += 1
55
 
56
  def check_error(option, value, *, config=False, negated=False, cli=None):
 
34
  config_path.write_text(default_config + base_config + config, encoding="utf-8")
35
  self.start_node(0, extra_args=cli or [])
36
  assert_equal(node.getblockchaininfo()["chain"], "regtest")
37
+ self.stop_node(0)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
38
  passed_startups += 1
39
 
40
  def check_error(option, value, *, config=False, negated=False, cli=None):