Skip to content

Commit

Permalink
[tests] Add coverage for the content of getblockchaininfo.softforks
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesob authored and jnewbery committed Aug 14, 2019
1 parent 0328dcd commit 8319e73
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions test/functional/rpc_blockchain.py
Expand Up @@ -123,6 +123,31 @@ def _test_getblockchaininfo(self):
assert_equal(res['prune_target_size'], 576716800)
assert_greater_than(res['size_on_disk'], 0)

assert_equal(res['softforks'], {
'bip34': {'type': 'buried', 'active': False, 'height': 500},
'bip66': {'type': 'buried', 'active': False, 'height': 1251},
'bip65': {'type': 'buried', 'active': False, 'height': 1351},
'csv': {'type': 'buried', 'active': False, 'height': 432},
'segwit': {'type': 'buried', 'active': True, 'height': 0},
'testdummy': {
'type': 'bip9',
'bip9': {
'status': 'started',
'bit': 28,
'startTime': 0,
'timeout': 0x7fffffffffffffff, # testdummy does not have a timeout so is set to the max int64 value
'since': 144,
'statistics': {
'period': 144,
'threshold': 108,
'elapsed': 57,
'count': 57,
'possible': True,
},
},
'active': False}
})

def _test_getchaintxstats(self):
self.log.info("Test getchaintxstats")

Expand Down

0 comments on commit 8319e73

Please sign in to comment.