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 possible unsynced inputs/outputs during inserts #509

Open
tdroxler opened this issue Jan 31, 2024 · 0 comments
Open

Fix possible unsynced inputs/outputs during inserts #509

tdroxler opened this issue Jan 31, 2024 · 0 comments

Comments

@tdroxler
Copy link
Member

As described here

It's an edge case that could occurs if someone request data between the insert of the outputs and the update of the inputs.

The issues comes from here where we insert blocks info and update inputs in two phases, because insertBlocks is a future, because if a parent is missing, we need to download it before inserting the others ones, so we need a Future and can't use only DBAction to make them transitionally.

One idea to fix that: We should maybe update the input directly when inserting blocks here, but we need to make sure we can't update an input of an output that isn't inserted yet.

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

No branches or pull requests

1 participant