Page MenuHomePhabricator

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

Authored by PiRK on Aug 28 2023, 15:33.

Details

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.

Diff Detail

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