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/wallet_avoid_mixing_output_types.py

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

File metadata
index 0d0629890d48746ffa24407fd2b95d407a8d4fe4..d705e1c0b11b7e0d17ffdd144cf6b5f9ea5bb921 100755

Download original patch · Release notes

Diff rows 1–25 of 25. 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/wallet_avoid_mixing_output_types.py CHANGED
@@ -114,12 +114,16 @@ class AddressInputTypeGrouping(BitcoinTestFramework):
114
  self.extra_args = [
115
  [
116
  "-addresstype=bech32",
 
117
  ],
118
  [
119
  "-addresstype=p2sh-segwit",
120
  "-txindex",
 
121
  ],
122
  ]
 
 
123
 
124
  def skip_test_if_missing_module(self):
125
  self.skip_if_no_wallet()
@@ -164,6 +168,9 @@ class AddressInputTypeGrouping(BitcoinTestFramework):
164
  tx = self.make_payment(
165
  A, B, v, random.choice(ADDRESS_TYPES)
166
  )
 
 
 
167
  self.generate(A, 1)
168
  assert is_same_type(B, tx)
169
 
 
114
  self.extra_args = [
115
  [
116
  "-addresstype=bech32",
117
+ "-rejectparasites=0",
118
  ],
119
  [
120
  "-addresstype=p2sh-segwit",
121
  "-txindex",
122
+ "-rejectparasites=0",
123
  ],
124
  ]
125
+ # Randomized wallet locktime can hit 21; isolate input grouping from
126
+ # the Roots local marker filter.
127
 
128
  def skip_test_if_missing_module(self):
129
  self.skip_if_no_wallet()
 
168
  tx = self.make_payment(
169
  A, B, v, random.choice(ADDRESS_TYPES)
170
  )
171
+ # B submits locally; ensure A receives the payment before mining it.
172
+ # Otherwise the final mixed payment can depend on unconfirmed change.
173
+ self.sync_mempools()
174
  self.generate(A, 1)
175
  assert is_same_type(B, tx)
176