Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getblockchaininfo RPC returns incorrect blocksigning script #1109

Closed
jamesdorfman opened this issue Apr 26, 2022 · 0 comments · Fixed by #1111
Closed

getblockchaininfo RPC returns incorrect blocksigning script #1109

jamesdorfman opened this issue Apr 26, 2022 · 0 comments · Fixed by #1111

Comments

@jamesdorfman
Copy link
Contributor

jamesdorfman commented Apr 26, 2022

The signblock_* fields in the getblockchaininfo RPC are caclculated in src/rpc/blockchain.cpp as follows:

CScript sign_block_script = chainparams.GetConsensus().signblockscript;
obj.pushKV("signblock_asm", ScriptToAsmStr(sign_block_script));
obj.pushKV("signblock_hex", HexStr(sign_block_script));

This is encoding the initial block signing script that the network was launched with at genesis.

However, this will become incorrect when the first dynafed transition which changes this script takes place.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant