Page MenuHomePhabricator

[electrum] add more typehints for blockchain related functions
ClosedPublic

Authored by PiRK on Dec 8 2023, 10:18.

Details

Summary

And refactor can_connect -> get_connecting_chain because it return a Blockchain that is used in network.py (same rationale as get_chain_for_header refactoring in D14950)

Depends on D14951

Test Plan
python test_runner.py
pytest electrumabc/tests/regtest

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

PiRK requested review of this revision.Dec 8 2023, 10:18
bytesofman added a subscriber: bytesofman.
bytesofman added inline comments.
electrum/electrumabc/blockchain.py
230 ↗(On Diff #43509)

Is this still true?

This revision is now accepted and ready to land.Dec 8 2023, 13:27
electrum/electrumabc/blockchain.py
230 ↗(On Diff #43509)