rpc: Return block time in getblockchaininfo
This commit is contained in:
1 parent
a62fc35a15
commit
20edf4bcf6
3 files changed
+8
-1
No files matched your search
@@ -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))
|
||||
|
||||
|
||||
Reference in new issue
Block a user