- Use an Enum for the chunk status for type safety and annotations
- Add various typehints when the static analysis tools can't reliably guess from context
- Refactor check_header and rename to get_chain_for_header. The return value is more than just a boolean, and it is treated as more than just a boolean by the callsites.
Details
Details
- Reviewers
Fabien - Group Reviewers
Restricted Project - Commits
- rABC78b72d91cb4a: [electrum] typehints and minor cleanup in blockchain.py
python test_runner.py pytest electrumabc/tests/regtest
Check that the CHUNK_* constants were not used anywhere except for checking the return status of Blockchain.connect_chunk and for log messages.
Run the software, send a transaction, wait for a new block.
Diff Detail
Diff Detail
- Repository
- rABC Bitcoin ABC
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Comment Actions
use an alias for typehinting header dicts. This will make it easier to switch to a more typesafe Header in the future.
Add a few hints