Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
facundomedica committed Feb 20, 2025
1 parent 49c27fa commit 15e3e3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sequencing/sequencer.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ func (c *Sequencer) LoadLastBatchHashFromDB() error {
var hash []byte
// Load the last batch hash from BadgerDB if it exists
err := c.db.View(func(txn *badger.Txn) error {
item, err := txn.Get([]byte("lastBatchHash"))
item, err := txn.Get(keyLastBatchHash)
if errors.Is(err, badger.ErrKeyNotFound) {
// If no last batch hash exists, it's the first time or nothing was processed
c.lastBatchHash = nil
Expand Down

0 comments on commit 15e3e3c

Please sign in to comment.