HomePhabricator

[electrum] make get_merkle_root.py work on computers were Electrum ABC was…

Description

[electrum] make get_merkle_root.py work on computers were Electrum ABC was never used

Summary:
When Electrum ABC is started for the first time, it creates its user data directory containing a certs directory where SSL certificates are stored. If this directory does not exist, it will fail to connect to servers that use self-signed certificates.

This diff makes the scripts work even if Electrum ABC was never used on a machine. This should fix the CI failure for the new "Update Electrum ABC checkpoints" CI task.

Depends on D15397

Test Plan:

mv ~/.electrum-abc/certs/  ~/.electrum-abc/certs-bck
python scripts/get_merkle_root.py -vv
ls  ~/.electrum-abc/certs/

This fails before this diff, and now it works.

Reviewers: #bitcoin_abc, bytesofman

Reviewed By: #bitcoin_abc, bytesofman

Subscribers: bytesofman

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

Details

Provenance
PiRKAuthored on Feb 6 2024, 12:55
PiRKPushed on Feb 6 2024, 16:21
Reviewer
Restricted Project
Differential Revision
D15398: [electrum] make get_merkle_root.py work on computers were Electrum ABC was never used
Parents
rABCf495701c037d: [electrum] use existing util.get_interfaces function for get_merkle_root
Branches
Unknown
Tags
Unknown