Page MenuHomePhabricator

[electrum] make the derivation path scanner report number of txs on timeout
ClosedPublic

Authored by PiRK on Jul 25 2023, 06:42.

Details

Summary

It is interesting to know whether a derivation path has any transactions, even if we are not sure about the exact number of txs.
Also it is likely that the timeout happens during the merkle verification when the whole transaction history is already downloaded.

I will try to fix the root cause in a different diff, because it seems to me that the tool should not timeout on wallets with only a few hundreds of transactions, but this change is still useful because we cannot reasonably make the user wait for full synchronization for much larger wallets with tens of thousands of transactions.

Test Plan

Try the derivation path scanner on a wallet with enough transactions to cause a timeout.

Diff Detail

Repository
rABC Bitcoin ABC
Branch
derivation_scanner_timeout
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 24590
Build 48777: Build Diffelectrum-tests
Build 48776: arc lint + arc unit