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 Unlock Syntactic Validation #134

Closed
wants to merge 1 commit into from
Closed

Fix Unlock Syntactic Validation #134

wants to merge 1 commit into from

Conversation

Thoralf-M
Copy link
Member

@Thoralf-M Thoralf-M commented Jul 21, 2023

A reference index must be < Max Inputs Count - 1, because it otherwise could be a self reference, which is not allowed in the unlocks semantic validation. So no point in allowing that in the syntactic validation of an unlock then in the first place

A reference index must be Max Inputs Count - 1, because it otherwise could be a self reference (which is not allowed in the unlocks validation, but not point in allowing that for a reference unlock then in the first place)
Copy link
Member

@lzpap lzpap left a comment

Choose a reason for hiding this comment

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

LGTM!

@Thoralf-M could you DRI the change in iota.go and hornet respectively? The impact is minimal as all what changes is the tx becoming syntactically invalid rather then semantically invalid.

@Thoralf-M
Copy link
Member Author

Thoralf-M commented Jul 21, 2023

@Thoralf-M
Copy link
Member Author

The link above was for Chrysalis, actually let's keep it as is and change only in 2.0

@Thoralf-M Thoralf-M closed this Aug 15, 2023
@Thoralf-M Thoralf-M deleted the Thoralf-M-patch-1 branch August 15, 2023 07:17
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