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

tapgarden/[bug]: batch not marked as confirmed before universe proof delivery #1086

Open
jharveyb opened this issue Aug 14, 2024 · 0 comments
Labels

Comments

@jharveyb
Copy link
Collaborator

Once a batch reaches state BatchStateConfirmed, the minter has created and stored valid minting proofs.

This is done here:

err = b.cfg.Log.MarkBatchConfirmed(

That call happens after the caretaker tries to deliver genesis proofs to a configured Universe.

if b.cfg.Universe != nil {

This means that if the upload to a Universe fails, the batch will not reach the proper state on disk. This may also cause issues on restart if genesis proofs were not delivered before shutdown, or if the Universe was misconfigured at the time of minting.

Related to #1009 , could likely be fixed by changes similar to #1074 .

Specifically, we can add a bool to the DB state for each batch to mark if proofs were delivered, and handle proof delivery on retry.

@jharveyb jharveyb added bug Something isn't working needs triage labels Aug 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: 🆕 New
Development

No branches or pull requests

2 participants