rpc: Return block time in getblockchaininfo

This commit is contained in:
João Barbosa
2021-07-05 22:39:36 +01:00
parent a62fc35a15
commit 20edf4bcf6
3 changed files with 8 additions and 1 deletions

View File

@ -93,11 +93,14 @@ class BlockchainTest(BitcoinTestFramework):
'pruned',
'size_on_disk',
'softforks',
'time',
'verificationprogress',
'warnings',
]
res = self.nodes[0].getblockchaininfo()
assert isinstance(res['time'], int)
# result should have these additional pruning keys if manual pruning is enabled
assert_equal(sorted(res.keys()), sorted(['pruneheight', 'automatic_pruning'] + keys))