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

Ensure stable ordering of results within a same slot / block #65

Closed
1000101 opened this issue Sep 21, 2022 · 1 comment · Fixed by #67
Closed

Ensure stable ordering of results within a same slot / block #65

1000101 opened this issue Sep 21, 2022 · 1 comment · Fixed by #67
Assignees
Labels
enhancement New feature or request

Comments

@1000101
Copy link

1000101 commented Sep 21, 2022

Describe your idea, in simple words.

When there are multiple transactions in the same block, the ordering becomes non-deterministic. This can be problematic in multi-node setup, when multiple instances of kupo may return data in different ordering and there is currently no good way of ordering them. Cardano-db-sync solves this by block_index field. Introducing block_index would resolve this.

Why is it a good idea?

To be able to retrieve txs ordered in a deterministic fashion.

Thanks for considering this ✨ !!!

@KtorZ KtorZ added the enhancement New feature or request label Sep 21, 2022
@KtorZ KtorZ self-assigned this Sep 28, 2022
@KtorZ
Copy link
Member

KtorZ commented Sep 28, 2022

Let's go.

@KtorZ KtorZ changed the title Add block_index to Matches Ensure stable ordering of results within a same slot / block Sep 28, 2022
@KtorZ KtorZ closed this as completed in #67 Sep 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants