HomePhabricator

[electrum] minor cleanup of scan_beyond_gap.py

Description

[electrum] minor cleanup of scan_beyond_gap.py

Summary:

  • Split done_signal(Optional[tuple[int, int]], Optional[Exception]) into done_signal(int, int) and error_signal(Exception) so we don't have to inspect the params to check for None and we don't have to unpack a tuple.
  • give the end indices directly to add_address so it doesn't have to scan a list of tuples to find these indices.

Test Plan: Try the tool in Electrum ABC with a deterministic wallet (menu Wallet > Scan More Addresses)

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

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

Details

Provenance
PiRKAuthored on Apr 2 2024, 08:19
PiRKPushed on Apr 2 2024, 13:35
Reviewer
Restricted Project
Differential Revision
D15848: [electrum] minor cleanup of scan_beyond_gap.py
Parents
rABC8f44ddd65bda: Bump makeseeds version filter
Branches
Unknown
Tags
Unknown