Skip to content

Commit

Permalink
functional: test p2p propagation of basic package rbf
Browse files Browse the repository at this point in the history
  • Loading branch information
instagibbs committed May 3, 2024
1 parent d7ab2f4 commit 88733de
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions test/functional/mempool_package_rbf.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@

class PackageRBFTest(BitcoinTestFramework):
def set_test_params(self):
self.num_nodes = 1
self.num_nodes = 2
self.setup_clean_chain = True
# Required for fill_mempool()
self.extra_args = [[
"-datacarriersize=100000",
"-maxmempool=5",
]]
]] * self.num_nodes

def assert_mempool_contents(self, expected=None):
"""Assert that all transactions in expected are in the mempool,
Expand Down Expand Up @@ -110,9 +110,16 @@ def test_package_rbf_basic(self):
node.submitpackage(package_hex1)
self.assert_mempool_contents(expected=package_txns1)

# Make sure 2nd node gets set up for basic package RBF
self.sync_all()

submitres = node.submitpackage(package_hex2)
assert_equal(set(submitres["replaced-transactions"]), set([tx.rehash() for tx in package_txns1]))
self.assert_mempool_contents(expected=package_txns2)

# Make sure 2nd node gets a basic package RBF over p2p
self.sync_all()

self.generate(node, 1)

def test_package_rbf_additional_fees(self):
Expand Down

0 comments on commit 88733de

Please sign in to comment.