mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-10 05:57:59 +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:
@@ -92,7 +92,7 @@ class BIP65Test(BitcoinTestFramework):
|
||||
self.rpc_timeout = 480
|
||||
|
||||
def test_cltv_info(self, *, is_active):
|
||||
assert_equal(self.nodes[0].getblockchaininfo()['softforks']['bip65'], {
|
||||
assert_equal(self.nodes[0].getdeploymentinfo()['deployments']['bip65'], {
|
||||
"active": is_active,
|
||||
"height": CLTV_HEIGHT,
|
||||
"type": "buried",
|
||||
|
||||
Reference in New Issue
Block a user