mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-06-29 18:20:58 +02:00
Merge bitcoin/bitcoin#23508: Add getdeploymentinfo RPC
a380922891
Release notes for getdeploymentinfo rpc (Anthony Towns)240cad09ba
rpc: getdeploymentinfo: include signalling info (Anthony Towns)376c0c6dae
rpc: getdeploymentinfo: include block hash/height (Anthony Towns)a7469bcd35
rpc: getdeploymentinfo: change stats to always refer to current period (Anthony Towns)7f15c1841b
rpc: getdeploymentinfo: allow specifying a blockhash other than tip (Anthony Towns)fd826130a0
rpc: 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 ACKa380922891
Sjors: tACKa380922891
fjahr: tACKa380922891
Tree-SHA512: 7417d733b47629f229c5128586569909250481a3e94356c52fe67a03fd42cd81745246e384b98c4115fb61587714c879e4bc3e5f5c74407d9f8f6773472a33cb
This commit is contained in:
@ -60,7 +60,7 @@ class BIP66Test(BitcoinTestFramework):
|
||||
return self.miniwallet.create_self_transfer(utxo_to_spend=utxo_to_spend)['tx']
|
||||
|
||||
def test_dersig_info(self, *, is_active):
|
||||
assert_equal(self.nodes[0].getblockchaininfo()['softforks']['bip66'],
|
||||
assert_equal(self.nodes[0].getdeploymentinfo()['deployments']['bip66'],
|
||||
{
|
||||
"active": is_active,
|
||||
"height": DERSIG_HEIGHT,
|
||||
|
Reference in New Issue
Block a user