Skip to content

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

@jharveyb

Description

@jharveyb

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    🆕 New

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions