-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
get rid of TransactionInput/TransactionOutput.parent
#2998
Labels
Developer discussion
discussion between developers about a specific topic
Comments
schildbach
added
the
Developer discussion
discussion between developers about a specific topic
label
Apr 8, 2023
schildbach
changed the title
get rid of
get rid of Apr 8, 2023
TransactionInput/TransactionOutput..parent
TransactionInput/TransactionOutput.parent
This is a good start for thinking about this. I will sleep on it. One thought: maybe we are approaching this "bermuda triangle" from the wrong direction. We've been trying to work up from outpoints, outputs, and inputs eventually getting to transaction. Maybe we should look at the transaction use cases and the "types" of transaction objects and work down to see which "types" of outpoints, outputs, and inputs they need? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Problems with the
parent
fields, and theirgetParentTransaction()
accessors:To get rid of the parents, I think we must:
Transaction
.TransactionOutput
will then only be a touple ofvalue
andscript
– both pretty arbitrary and certainly not enough to identify a particular output. This means:TransactionOutput
to identify an output would need to useTransactionOutPoint
, which is exactly meant for this. This involves e.g.CoinSelector
,CoinSelection
,Wallet.unspents
.The text was updated successfully, but these errors were encountered: