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

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

File metadata
index 54bdd27a446f7d022e63aacf6a8e79790767d983..9eea25e2f7e529b2b48ee005991871ece5c7a97c 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. The two line-number columns refer to before and after.

test/functional/p2p_1p1c_network.py CHANGED
@@ -39,8 +39,9 @@ class PackageRelayTest(BitcoinTestFramework):
39
39
  self.noban_tx_relay = True
40
40
 
41
41
  def create_basic_1p1c(self, wallet):
42
- low_fee_parent = wallet.create_self_transfer(fee_rate=0, confirmed_only=True)
43
- high_fee_child = wallet.create_self_transfer(utxo_to_spend=low_fee_parent["new_utxo"], fee_rate=999*Decimal(DEFAULT_MIN_RELAY_TX_FEE)/ COIN)
42
+ # Roots permits below-relay-floor sponsorship for enforced TRUC packages.
43
+ low_fee_parent = wallet.create_self_transfer(version=3, fee_rate=0, confirmed_only=True)
44
+ high_fee_child = wallet.create_self_transfer(version=3, utxo_to_spend=low_fee_parent["new_utxo"], fee_rate=999*Decimal(DEFAULT_MIN_RELAY_TX_FEE)/ COIN)
44
45
  package_hex_basic = [low_fee_parent["hex"], high_fee_child["hex"]]
45
46
  return package_hex_basic, low_fee_parent["tx"], high_fee_child["tx"]
46
47
 
@@ -49,6 +50,7 @@ class PackageRelayTest(BitcoinTestFramework):
49
50
  utxo_for_2outs = wallet.get_utxo(confirmed_only=True)
50
51
 
51
52
  low_fee_parent_2outs = wallet.create_self_transfer_multi(
53
+ version=3,
52
54
  utxos_to_spend=[utxo_for_2outs],
53
55
  num_outputs=2,
54
56
  fee_per_output=0,
@@ -56,6 +58,7 @@ class PackageRelayTest(BitcoinTestFramework):
56
58
 
57
59
  # Now create the child
58
60
  high_fee_child_2outs = wallet.create_self_transfer_multi(
61
+ version=3,
59
62
  utxos_to_spend=low_fee_parent_2outs["new_utxos"][::-1],
60
63
  fee_per_output=10_000,
61
64
  )