Skip to content

Commit

Permalink
fixups for hardened tests
Browse files Browse the repository at this point in the history
  • Loading branch information
knst committed Jun 18, 2023
1 parent 58b48e6 commit 5657a78
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
1 change: 1 addition & 0 deletions src/rpc/blockchain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1586,6 +1586,7 @@ UniValue getblockchaininfo(const JSONRPCRequest& request)
BuriedForkDescPushBack(softforks, "realloc", consensusParams.BRRHeight);
BIP9SoftForkDescPushBack(softforks, "v19", consensusParams, Consensus::DEPLOYMENT_V19);
BIP9SoftForkDescPushBack(softforks, "v20", consensusParams, Consensus::DEPLOYMENT_V20);
BIP9SoftForkDescPushBack(softforks, "mn_rr", consensusParams, Consensus::DEPLOYMENT_MN_RR);
BIP9SoftForkDescPushBack(softforks, "testdummy", consensusParams, Consensus::DEPLOYMENT_TESTDUMMY);

obj.pushKV("softforks", softforks);
Expand Down
13 changes: 6 additions & 7 deletions test/functional/rpc_blockchain.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def _test_getblockchaininfo(self):
'dip0020': { 'type': 'buried', 'active': False, 'height': 300},
'dip0024': { 'type': 'buried', 'active': False, 'height': 900},
'realloc': { 'type': 'buried', 'active': False, 'height': 2500},
'mn_rr': {
'v19': {
'type': 'bip9',
'bip9': {
'status': 'defined',
Expand All @@ -167,24 +167,23 @@ def _test_getblockchaininfo(self):
'since': 0
},
'active': False},
'v19': {
'v20': {
'type': 'bip9',
'bip9': {
'status': 'defined',
'start_time': 0,
'timeout': 999999999999,
'since': 0
},
'active': False},
'v20': {
}, 'active': False},
'mn_rr': {
'type': 'bip9',
'bip9': {
'status': 'defined',
'start_time': 0,
'timeout': 999999999999,
'since': 0
}, 'active': False},

},
'active': False},
'testdummy': {
'type': 'bip9',
'bip9': {
Expand Down

0 comments on commit 5657a78

Please sign in to comment.