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

wire, netsync: change MsgUtreexoTx serialization #217

Merged

Conversation

kcalvinalvin
Copy link
Contributor

Biggest change made here is to do PreviousOutPoint.Index <<= 1 and use the LSB to indicate if the
TxIn is confirmed or not. This is mainly done to give ordering to the LeafDatas and the TxIns. Without
this, it's hard to tell which LeafData is for which TxIn.

Added for utility but mainly to check that if the LeafData has been
initialized or not. Makes it easy to tell if the txIn this LeafData
represents is confirmed or unconfirmed.
unconfirmed marker in the TxIn.OutPoint.Index

Instead of having the UData wrapper, MsgUtreexoTx has the BatchProof and
the LeafData structs directly.

Also, confirmed marker for each TxIn is now included in its OutPoint.Index.
@kcalvinalvin kcalvinalvin merged commit 353f565 into utreexo:main Nov 14, 2024
2 checks passed
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.

1 participant