Skip to content

bug: lastBatchHash only stored in-memory leading to mismatch after restart #1972

Description

@gupadhyaya

the lastBatchHash is stored only in-memory: https://github.com/rollkit/rollkit/blob/main/block/manager.go#L446
this leads to following error if the node stops and restarts

6:24PM ERR error while retrieving batch error="rpc error: code = Unknown desc = batch hash mismatch: lastBatchHash = bb38c42f9c5965ecc3efffd764773e0cc2f8abb850ba1b279cb7579c6ab55b6e, req.LastBatchHash = " module=BlockManager

solution is to persist the lastBatchHash to store and load it on restart.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

T:bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions