getblockchaininfo: remove incorrect signblock fields#1111
Conversation
3386a58 to
0130d8a
Compare
…lock_hex' from rpc response
0130d8a to
efdb2f4
Compare
|
ACK |
|
utACK efdb2f4 |
|
So I notice that " EDIT: .... Ok, I'm actually a little confused, after looking at the code, why these are even different right now. It definitely doesn't look like we have any easy way of getting the witness script in dynafed-land. I would love it if someone who remembers how this got this way could comment. However, unless there's an easy way to get both correctly, I'm okay with just removing the one that's about to be wrong. There's no obvious reason that anybody other than us would want it. So, utACK. |
Fixes #1109.
To summarize, there are currently two similar sets of fields in the
getblockchaininfoRPC response which purport to describe the network's current blocksigning script:The
signblock_asm/signblock_hexfields only display the initial blocksigning script that was used at the time of network genesis. On the other hand, thecurrent_signblock_asm/current_signblock_hexfields actually show the blocksigning script that is currently being used on the network, and these values change as expected following dynafed transitions.The
signblock_asm/signblock_hexfields are currently misleading, and they will become entirely incorrect following future dynafed transitions that modify thesignblockscript.I have considered the following options:
initial_signblock_asm/initial_signblock_hexIn this PR I have removed them entirely, because I don't think they serve any use. However, this will be a breaking change. As such, I am also open to simply renaming them.