mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-26 05:48:20 +01:00
Merge bitcoin/bitcoin#23508: Add getdeploymentinfo RPC
a380922891Release notes for getdeploymentinfo rpc (Anthony Towns)240cad09barpc: getdeploymentinfo: include signalling info (Anthony Towns)376c0c6daerpc: getdeploymentinfo: include block hash/height (Anthony Towns)a7469bcd35rpc: getdeploymentinfo: change stats to always refer to current period (Anthony Towns)7f15c1841brpc: getdeploymentinfo: allow specifying a blockhash other than tip (Anthony Towns)fd826130a0rpc: move softfork info from getblockchaininfo to getdeploymentinfo (Anthony Towns) Pull request description: The aim of this PR is to improve the ability to monitor soft fork status. It first moves the softfork section from getblockchaininfo into a new RPC named getdeploymentinfo, which is then also able to query the status of forks at an arbitrary block rather than only at the tip. In addition, bip9 status is changed to indicate the status of the given block, rather than just for the next block, and an additional field is included to indicate whether each block in the signalling period signaled. ACKs for top commit: laanwj: Code review and lightly tested ACKa380922891Sjors: tACKa380922891fjahr: tACKa380922891Tree-SHA512: 7417d733b47629f229c5128586569909250481a3e94356c52fe67a03fd42cd81745246e384b98c4115fb61587714c879e4bc3e5f5c74407d9f8f6773472a33cb
This commit is contained in:
@@ -438,7 +438,7 @@ def delete_cookie_file(datadir, chain):
|
||||
|
||||
def softfork_active(node, key):
|
||||
"""Return whether a softfork is active."""
|
||||
return node.getblockchaininfo()['softforks'][key]['active']
|
||||
return node.getdeploymentinfo()['deployments'][key]['active']
|
||||
|
||||
|
||||
def set_node_times(nodes, t):
|
||||
|
||||
Reference in New Issue
Block a user