HomePhabricator

[electrum] move checkpoint data to a json file

Description

[electrum] move checkpoint data to a json file

Summary:
And add an option to the get_merkle_root script to output the file in the correct format.

This will make it easier to automate the checkpoint updating without using hacky way to modify the networks.py source file.

Depends on D14981

Test Plan:
The two json files in this diff were generated via:

scripts/get_merkle_root 822000 --json-output electrumabc/checkpoint.json
scripts/get_merkle_root 1477500 --json-output electrumabc/checkpoint_testnet.json  --server telectrum.bitcoinabc.org:60002:s

Run the software, check that we are connected, that the servers are not blacklisted (would happen if the merkle root was wrong).

Build some release binaries and test them, to make sure the new data files are properly packaged.

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Subscribers: Fabien

Differential Revision: https://reviews.bitcoinabc.org/D14985

Details

Provenance
PiRKAuthored on Dec 14 2023, 13:30
PiRKPushed on Dec 15 2023, 09:38
Reviewer
Restricted Project
Differential Revision
D14985: [electrum] move checkpoint data to a json file
Parents
rABC2cf083c76655: [electrum] add a script to get the merkle root for a block height
Branches
Unknown
Tags
Unknown