TxOutput is a NamedTuple, which can be accessed by index or by attribute name. Accessing the fields by attribute name makes the code more readable.
Details
Details
- Reviewers
Fabien - Group Reviewers
Restricted Project - Commits
- rABCd10b4d3c45ef: [electrum] access TxOutput value by attribute name rather than index in…
python test_runner.py
Run the application, send a transaction to make sure the codepaths are triggered.
Diff Detail
Diff Detail
- Repository
- rABC Bitcoin ABC
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Comment Actions
add typehints on touched methods to clarify that tx really has a tx.outputs() -> List[TXOutput] method