-
Notifications
You must be signed in to change notification settings - Fork 1.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
Index multi-parent inscriptions #3227
Conversation
a37068e
to
5e3030d
Compare
src/inscriptions/inscription.rs
Outdated
return None; | ||
} | ||
// the option detour is a bit awkward | ||
Self::inscription_id_field(&Some(p.clone())) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the inscription_id_field
method injective for Some
return values? If it isn't and multiple Vec<u8>
arguments can produce the same inscription id, the uniqueness check must be moved below the canonicalization.
*parent = None; | ||
} | ||
} | ||
parents.retain(|purported_parent| potential_parents.contains(purported_parent)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should a separate uniqueness check be introduced here?
e335afd
to
85a8ccd
Compare
Co-authored-by: raph <[email protected]>
# Conflicts: # src/subcommand/server.rs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
let the breeding begin
This PR enables indexing and rendering multiple parents in a single inscription, addressing #2494.