Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

transaction: introduce TxOutput namedtuple #4596

Merged
merged 1 commit into from
Aug 2, 2018

Conversation

SomberNight
Copy link
Member

related: #4570

I think it's nicer for us too not to have 3-tuples everywhere;
a data class might have been even better so that it can't be unpacked (in case we introduce a new field).
Also, I think it's better than dicts.

@ecdsa ecdsa merged commit 194ee39 into spesmilo:master Aug 2, 2018
PiRK added a commit to PiRK/ElectrumABC that referenced this pull request May 19, 2023
Using a namedtuple is an intermediate step before creating a proper class for this. It encapsulate the 3-tuples and makes the code easier to read (attributes rather than indices)

backport of spesmilo#4596 and removal of a bunch of code Transaction methods that are unused.
PiRK added a commit to PiRK/ElectrumABC that referenced this pull request May 19, 2023
Using a namedtuple is an intermediate step before creating a proper class for this. It encapsulate the 3-tuples and makes the code easier to read (attributes rather than indices)

backport of spesmilo#4596 and removal of a bunch of code Transaction methods that are unused.
PiRK added a commit to PiRK/ElectrumABC that referenced this pull request May 22, 2023
Using a namedtuple is an intermediate step before creating a proper class for this. It encapsulate the 3-tuples and makes the code easier to read (attributes rather than indices)

backport of spesmilo#4596 and removal of a bunch of code Transaction methods that are unused.
PiRK added a commit to Bitcoin-ABC/ElectrumABC that referenced this pull request May 22, 2023
Using a namedtuple is an intermediate step before creating a proper class for this. It encapsulate the 3-tuples and makes the code easier to read (attributes rather than indices)

backport of spesmilo#4596 and removal of a bunch of code Transaction methods that are unused.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants