|
|
@ -123,6 +123,31 @@ class BlockchainTest(BitcoinTestFramework):
|
|
|
|
assert_equal(res['prune_target_size'], 576716800)
|
|
|
|
assert_equal(res['prune_target_size'], 576716800)
|
|
|
|
assert_greater_than(res['size_on_disk'], 0)
|
|
|
|
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):
|
|
|
|
def _test_getchaintxstats(self):
|
|
|
|
self.log.info("Test getchaintxstats")
|
|
|
|
self.log.info("Test getchaintxstats")
|
|
|
|
|
|
|
|
|
|
|
|