Page MenuHomePhabricator

[electrum] fix get_merkle_root when Electrum ABC is not installed
ClosedPublic

Authored by PiRK on Feb 1 2024, 07:45.

Details

Summary

The script cannot import electrumabc if it is not in the python PATH. We could install ElectrumABC as a package with pip install . in update-electrum-checkpoints.sh, but it is simpler to just hack sys.path to make sure the script always work with the latest version of the source code.

Test Plan
pip uninstall ElectrumABC
cd ./contrib/source-control-tools
./patch-recipes/update-electrum-checkpoints.sh

Diff Detail

Repository
rABC Bitcoin ABC
Branch
fix_electrum_checkpoints
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 26826
Build 53220: Build Diffelectrum-tests
Build 53219: arc lint + arc unit

Event Timeline

PiRK requested review of this revision.Feb 1 2024, 07:45
PiRK retitled this revision from [electrum] make the get_merkle_root script work even if Electrum ABC is not installed to [electrum] fix get_merkle_root when Electrum ABC is not installed.Feb 1 2024, 07:53
This revision is now accepted and ready to land.Feb 1 2024, 08:21