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. Before is on the left; after is on the right. Unified view fits narrow screens more easily.
test/functional/p2p_1p1c_network.py
CHANGED
|
@@ -39,8 +39,9 @@ class PackageRelayTest(BitcoinTestFramework):
|
|
| 39 |
self.noban_tx_relay = True
|
| 40 |
|
| 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)
|
|
|
|
| 44 |
package_hex_basic = [low_fee_parent["hex"], high_fee_child["hex"]]
|
| 45 |
return package_hex_basic, low_fee_parent["tx"], high_fee_child["tx"]
|
| 46 |
|
|
@@ -49,6 +50,7 @@ class PackageRelayTest(BitcoinTestFramework):
|
|
| 49 |
utxo_for_2outs = wallet.get_utxo(confirmed_only=True)
|
| 50 |
|
| 51 |
low_fee_parent_2outs = wallet.create_self_transfer_multi(
|
|
|
|
| 52 |
utxos_to_spend=[utxo_for_2outs],
|
| 53 |
num_outputs=2,
|
| 54 |
fee_per_output=0,
|
|
@@ -56,6 +58,7 @@ class PackageRelayTest(BitcoinTestFramework):
|
|
| 56 |
|
| 57 |
# Now create the child
|
| 58 |
high_fee_child_2outs = wallet.create_self_transfer_multi(
|
|
|
|
| 59 |
utxos_to_spend=low_fee_parent_2outs["new_utxos"][::-1],
|
| 60 |
fee_per_output=10_000,
|
| 61 |
)
|
|
|
|
| 39 |
self.noban_tx_relay = True
|
| 40 |
|
| 41 |
def create_basic_1p1c(self, wallet):
|
| 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)
|
| 45 |
package_hex_basic = [low_fee_parent["hex"], high_fee_child["hex"]]
|
| 46 |
return package_hex_basic, low_fee_parent["tx"], high_fee_child["tx"]
|
| 47 |
|
|
|
|
| 50 |
utxo_for_2outs = wallet.get_utxo(confirmed_only=True)
|
| 51 |
|
| 52 |
low_fee_parent_2outs = wallet.create_self_transfer_multi(
|
| 53 |
+
version=3,
|
| 54 |
utxos_to_spend=[utxo_for_2outs],
|
| 55 |
num_outputs=2,
|
| 56 |
fee_per_output=0,
|
|
|
|
| 58 |
|
| 59 |
# Now create the child
|
| 60 |
high_fee_child_2outs = wallet.create_self_transfer_multi(
|
| 61 |
+
version=3,
|
| 62 |
utxos_to_spend=low_fee_parent_2outs["new_utxos"][::-1],
|
| 63 |
fee_per_output=10_000,
|
| 64 |
)
|