Skip to content

Commit

Permalink
Add test stub for wrong sized cluster conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
instagibbs committed Dec 8, 2023
1 parent 7abfd34 commit b38d4c2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/functional/mempool_package_rbf.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ def run_test(self):
self.test_too_numerous_ancestors()
self.test_too_numerous_pkg()
self.test_insufficient_feerate()
self.test_wrong_conflict_cluster_size()

def test_package_rbf_basic(self):
self.log.info("Test that a child can pay to replace its parents' conflicts")
Expand Down Expand Up @@ -261,6 +262,12 @@ def test_too_numerous_ancestors(self):
self.assert_mempool_contents(expected=package_txns1 + package_txns2_succeed, unexpected=package_txns2_fail)
self.generate(node, 1)

def test_wrong_conflict_cluster_size(self):
self.log.info("Test that conflicting with a cluster not sized two is rejected")

# conflict directly against chain of 3 txns
# conflict against a child in a 3 gen chain

def test_too_numerous_pkg(self):
self.log.info("Test that package RBF doesn't work with packages larger than 2 due to pkg size")
node = self.nodes[0]
Expand Down

0 comments on commit b38d4c2

Please sign in to comment.