test: update feature_rbf.py replacement test
Preparatory commit to the rbf functional test, before changes are made to the rbf rules as part of cluster mempool.
This commit is contained in:
1 parent
34e32985e8
commit
435fd56711
1 file changed
+3
-1
@@ -21,6 +21,8 @@ from test_framework.wallet import MiniWallet
|
|||||||
from test_framework.address import ADDRESS_BCRT1_UNSPENDABLE
|
from test_framework.address import ADDRESS_BCRT1_UNSPENDABLE
|
||||||
|
|
||||||
MAX_REPLACEMENT_LIMIT = 100
|
MAX_REPLACEMENT_LIMIT = 100
|
||||||
|
MAX_CLUSTER_LIMIT = 64
|
||||||
|
|
||||||
class ReplaceByFeeTest(BitcoinTestFramework):
|
class ReplaceByFeeTest(BitcoinTestFramework):
|
||||||
def set_test_params(self):
|
def set_test_params(self):
|
||||||
self.num_nodes = 2
|
self.num_nodes = 2
|
||||||
@@ -216,7 +218,7 @@ class ReplaceByFeeTest(BitcoinTestFramework):
|
|||||||
yield x
|
yield x
|
||||||
|
|
||||||
fee = int(0.00001 * COIN)
|
fee = int(0.00001 * COIN)
|
||||||
n = MAX_REPLACEMENT_LIMIT
|
n = MAX_CLUSTER_LIMIT
|
||||||
tree_txs = list(branch(tx0_outpoint, initial_nValue, n, fee=fee))
|
tree_txs = list(branch(tx0_outpoint, initial_nValue, n, fee=fee))
|
||||||
assert_equal(len(tree_txs), n)
|
assert_equal(len(tree_txs), n)
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user