Skip to content
Bitcoin Roots

v31.1-roots.1 · Commit 3: [PATCH 03/17] feat(policy): preserve cluster accounting and repair dynamic dust

test/functional/mempool_roots_local_policy.py

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

File metadata
index 59a69c7acb4700a4737d7be8c150a4d9ade33957..0b70c4d07e518396b861f2ab8c179106a1c11fbc 100755

Download original patch · Release notes

Diff rows 1–13 of 13. 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/mempool_roots_local_policy.py CHANGED
@@ -77,10 +77,10 @@ class LocalPolicyTest(BitcoinTestFramework):
77
  tx.vout.append(CTxOut(1, tx.vout[0].scriptPubKey))
78
  tx.vout[0].nValue -= 1
79
  rejected(tx, "dust-nonanchor")
80
- # These local exceptions are independent of L8's deferred deficit penalty.
81
- self.restart_node(0, extra_args=["-permitephemeral=send", "-minrelaytxfee=0"])
82
  assert_equal(result(tx)["allowed"], True)
83
- self.restart_node(0, extra_args=["-permitephemeral=send,-dust", "-minrelaytxfee=0"])
84
  rejected(tx, "dust-nonzero")
85
  self.generateblock(node, output="raw(42)", transactions=[tx.serialize().hex()])
86
  self.restart_node(0)
 
77
  tx.vout.append(CTxOut(1, tx.vout[0].scriptPubKey))
78
  tx.vout[0].nValue -= 1
79
  rejected(tx, "dust-nonanchor")
80
+ # Isolate the L7 local exception from L8's enabled deficit penalty.
81
+ self.restart_node(0, extra_args=["-permitephemeral=send", "-minrelaytxfee=0", "-subdustfeepenalty=0"])
82
  assert_equal(result(tx)["allowed"], True)
83
+ self.restart_node(0, extra_args=["-permitephemeral=send,-dust", "-minrelaytxfee=0", "-subdustfeepenalty=0"])
84
  rejected(tx, "dust-nonzero")
85
  self.generateblock(node, output="raw(42)", transactions=[tx.serialize().hex()])
86
  self.restart_node(0)