[rpc] Tidy up reporting of buried and ongoing softforks

This combines reporting of buried (formally ISM) softfork deployments
and BIP9 versionbits softfork deployments into one JSON object in the
getblockchaininfo return object.
This commit is contained in:
John Newbery
2019-05-20 14:58:09 -04:00
parent 3a3d8b8357
commit 3862e473f0
5 changed files with 81 additions and 99 deletions

View File

@@ -344,7 +344,7 @@ def delete_cookie_file(datadir):
def get_bip9_status(node, key):
info = node.getblockchaininfo()
return info['bip9_softforks'][key]
return info['softforks'][key]['bip9']
def set_node_times(nodes, t):
for node in nodes: