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

Fix the alonzo tx witness serialization #2525

Merged
merged 1 commit into from
Oct 19, 2021

Conversation

JaredCorduan
Copy link
Contributor

@JaredCorduan JaredCorduan commented Oct 19, 2021

Missing witness group should be entirely absent on the wire, not encoded as an empty list. We were encoding an empty list in the scenario that one type of Plutus script was present, but another Plutus type was absent, since the Omit check was checking to see if there were no scripts at all.

I am hoping this unblocks IntersectMBO/ouroboros-network#3438

Missing witness group should be entirely absent on the wire, not encoded
as an empty list. We were encoding an empty list in the scenario that
one type of script was present, but another type was absent, since the
"Omit" check was checking too see if there were no scripts at all.
@JaredCorduan JaredCorduan force-pushed the jc/fix-alonzo-txwit-serialization branch from 98fa9e3 to 9ab8559 Compare October 19, 2021 21:59
isTimelock (TimelockScript _) = True
isTimelock (PlutusScript _ _) = False

isPlutus _ (TimelockScript _) = True
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh goodness 🤦 I will need to do a follow-up PR. cc @nc6

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can wait.

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.

4 participants