File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 14
14
from test_framework .wallet import MiniWallet
15
15
16
16
17
- class MempoolCompatibilityTest (BitcoinTestFramework ):
17
+ class TxindexCompatibilityTest (BitcoinTestFramework ):
18
18
def set_test_params (self ):
19
19
self .num_nodes = 3
20
20
self .extra_args = [
@@ -33,7 +33,7 @@ def setup_network(self):
33
33
versions = [
34
34
160300 , # Last release with legacy txindex
35
35
None , # For MiniWallet, without migration code
36
- 200100 , # Any release with migration code (0.17.x - 22.x)
36
+ 220000 , # Last release with migration code (0.17.x - 22.x)
37
37
],
38
38
)
39
39
self .start_nodes ()
@@ -89,4 +89,4 @@ def run_test(self):
89
89
90
90
91
91
if __name__ == "__main__" :
92
- MempoolCompatibilityTest ().main ()
92
+ TxindexCompatibilityTest ().main ()
Original file line number Diff line number Diff line change 7
7
NOTE: The test is designed to prevent cases when compatibility is broken accidentally.
8
8
In case we need to break mempool compatibility we can continue to use the test by just bumping the version number.
9
9
10
- The previous release v0.19.1 is required by this test, see test/README.md.
10
+ Previous releases are required by this test, see test/README.md.
11
11
"""
12
12
13
13
import os
@@ -29,7 +29,7 @@ def skip_test_if_missing_module(self):
29
29
30
30
def setup_network (self ):
31
31
self .add_nodes (self .num_nodes , versions = [
32
- 190100 , # oldest version with getmempoolinfo.loaded (used to avoid intermittent issues)
32
+ 200100 , # Last release with previous mempool format
33
33
None ,
34
34
])
35
35
self .start_nodes ()
@@ -38,6 +38,7 @@ def run_test(self):
38
38
self .log .info ("Test that mempool.dat is compatible between versions" )
39
39
40
40
old_node , new_node = self .nodes
41
+ assert "unbroadcastcount" not in old_node .getmempoolinfo ()
41
42
new_wallet = MiniWallet (new_node , mode = MiniWalletMode .RAW_P2PK )
42
43
self .generate (new_wallet , 1 , sync_fun = self .no_op )
43
44
self .generate (new_node , COINBASE_MATURITY , sync_fun = self .no_op )
You can’t perform that action at this time.
0 commit comments