HomePhabricator

[electrum] access TxOutput value by attribute name rather than index in…

Description

[electrum] access TxOutput value by attribute name rather than index in coinchooser

Summary: 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.

Test Plan:
python test_runner.py

Run the application, send a transaction to make sure the codepaths are triggered.

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

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

Details

Provenance
PiRKAuthored on Aug 28 2023, 14:44
PiRKPushed on Aug 29 2023, 08:34
Reviewer
Restricted Project
Differential Revision
D14420: [electrum] access TxOutput value by attribute name rather than index in coinchooser
Parents
rABC0c21867f1694: [Automated] Update seeds
Branches
Unknown
Tags
Unknown