rpc: Return block time in getblockchaininfo

This commit is contained in:
João Barbosa committed 2021-07-20 10:43:26 +01:00
1 parent a62fc35a15
commit 20edf4bcf6
3 files changed
+8 -1

No files matched your search

+3
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))