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

Index multi-parent inscriptions #3227

Merged
merged 54 commits into from
Mar 15, 2024
Merged

Conversation

arik-so
Copy link
Contributor

@arik-so arik-so commented Mar 6, 2024

This PR enables indexing and rendering multiple parents in a single inscription, addressing #2494.

@raphjaph raphjaph mentioned this pull request Mar 6, 2024
@arik-so arik-so force-pushed the multi-parent branch 4 times, most recently from a37068e to 5e3030d Compare March 7, 2024 07:13
@arik-so arik-so marked this pull request as ready for review March 7, 2024 23:49
return None;
}
// the option detour is a bit awkward
Self::inscription_id_field(&Some(p.clone()))
Copy link
Contributor Author

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));
Copy link
Contributor Author

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?

@arik-so arik-so changed the title Multi-parent exploration Index multi-parent inscriptions Mar 7, 2024
@arik-so arik-so force-pushed the multi-parent branch 3 times, most recently from e335afd to 85a8ccd Compare March 8, 2024 00:37
templates/inscription.html Outdated Show resolved Hide resolved
@raphjaph raphjaph linked an issue Mar 11, 2024 that may be closed by this pull request
@arik-so
Copy link
Contributor Author

arik-so commented Mar 12, 2024

  • order of parents is correct in database

Is this taken care of by the integration test that creates multiple distinct parents and then checks the array contents and order?

Copy link
Collaborator

@raphjaph raphjaph left a 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

@raphjaph raphjaph enabled auto-merge (squash) March 15, 2024 23:24
@raphjaph raphjaph merged commit 4acc5f8 into ordinals:master Mar 15, 2024
5 checks passed
@arik-so arik-so deleted the multi-parent branch March 18, 2024 07:00
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.

Allow multiple parents
3 participants