v31.1-roots.1 · Commit 3: [PATCH 03/17] feat(policy): preserve cluster accounting and repair dynamic dust
test/functional/mempool_truc.py
Before: test/functional/mempool_truc.py · After: test/functional/mempool_truc.py
File metadata
index 14b49ddad40f0e944624f61c7d4f058d380c01c1..80f774cf9ceb4c111bafb185b826f6426b12e2ee 100755
Download original patch · Release notes
Diff rows 1–16 of 16. 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_truc.py
CHANGED
|
@@ -649,8 +649,14 @@ class MempoolTRUC(BitcoinTestFramework):
|
|
| 649 |
assert_equal(result_truc["package_msg"], "success")
|
| 650 |
|
| 651 |
result_non_truc = node.submitpackage([tx_v2_0fee_parent["hex"], tx_v2_child["hex"]], maxfeerate=0)
|
| 652 |
-
assert_equal(result_non_truc["package_msg"], "success")
|
| 653 |
-
self.check_mempool([tx_v2_0fee_parent["txid"], tx_v2_child["txid"], tx_v3_0fee_parent["txid"], tx_v3_child["txid"]])
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 654 |
|
| 655 |
|
| 656 |
def run_test(self):
|
|
|
|
| 649 |
assert_equal(result_truc["package_msg"], "success")
|
| 650 |
|
| 651 |
result_non_truc = node.submitpackage([tx_v2_0fee_parent["hex"], tx_v2_child["hex"]], maxfeerate=0)
|
| 652 |
+
if minrelayfeerate > 0:
|
| 653 |
+
# Roots retains the individual relay floor for non-TRUC parents.
|
| 654 |
+
assert_equal(result_non_truc["package_msg"], "transaction failed")
|
| 655 |
+
assert "min relay fee not met" in result_non_truc["tx-results"][tx_v2_0fee_parent["wtxid"]]["error"]
|
| 656 |
+
self.check_mempool([tx_v3_0fee_parent["txid"], tx_v3_child["txid"]])
|
| 657 |
+
else:
|
| 658 |
+
assert_equal(result_non_truc["package_msg"], "success")
|
| 659 |
+
self.check_mempool([tx_v2_0fee_parent["txid"], tx_v2_child["txid"], tx_v3_0fee_parent["txid"], tx_v3_child["txid"]])
|
| 660 |
|
| 661 |
|
| 662 |
def run_test(self):
|