Changeset View
Changeset View
Standalone View
Standalone View
test/functional/rpc_blockchain.py
Show First 20 Lines • Show All 125 Lines • ▼ Show 20 Lines | def _test_getblockchaininfo(self): | ||||
'threshold': 108, | 'threshold': 108, | ||||
'elapsed': 57, | 'elapsed': 57, | ||||
'count': 57, | 'count': 57, | ||||
'possible': True, | 'possible': True, | ||||
}, | }, | ||||
}, | }, | ||||
'active': False, | 'active': False, | ||||
}, | }, | ||||
'minerfund': { | |||||
'type': 'bip9', | |||||
'bip9': { | |||||
'status': 'defined', | |||||
'start_time': 1573819200, | |||||
'timeout': 1589544000, | |||||
'since': 0, | |||||
}, | |||||
'active': False, | |||||
}, | |||||
'minerfundabc': { | |||||
'type': 'bip9', | |||||
'bip9': { | |||||
'status': 'defined', | |||||
'start_time': 1573819200, | |||||
'timeout': 1589544000, | |||||
'since': 0, | |||||
}, | |||||
'active': False, | |||||
}, | |||||
'minerfundbchd': { | |||||
'type': 'bip9', | |||||
'bip9': { | |||||
'status': 'defined', | |||||
'start_time': 1573819200, | |||||
'timeout': 1589544000, | |||||
'since': 0, | |||||
}, | |||||
'active': False, | |||||
}, | |||||
'minerfundelectroncash': { | |||||
'type': 'bip9', | |||||
'bip9': { | |||||
'status': 'defined', | |||||
'start_time': 1573819200, | |||||
'timeout': 1589544000, | |||||
'since': 0, | |||||
}, | |||||
'active': False, | |||||
}, | |||||
}) | }) | ||||
# pruneheight should be greater or equal to 0 | # pruneheight should be greater or equal to 0 | ||||
assert_greater_than_or_equal(res['pruneheight'], 0) | assert_greater_than_or_equal(res['pruneheight'], 0) | ||||
# check other pruning fields given that prune=1 | # check other pruning fields given that prune=1 | ||||
assert res['pruned'] | assert res['pruned'] | ||||
assert not res['automatic_pruning'] | assert not res['automatic_pruning'] | ||||
▲ Show 20 Lines • Show All 276 Lines • Show Last 20 Lines |