Skip to content

Commit

Permalink
fix: fix status update
Browse files Browse the repository at this point in the history
  • Loading branch information
alexgao001 committed Jun 25, 2024
1 parent 312c24a commit acc1f1e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions syncer/verifier.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@ import (
"path/filepath"
"time"

"github.com/prysmaticlabs/prysm/v5/api/server/structs"
"gorm.io/gorm"

"github.com/prysmaticlabs/prysm/v5/api/server/structs"

"github.com/bnb-chain/blob-hub/db"
"github.com/bnb-chain/blob-hub/external/cmn"
"github.com/bnb-chain/blob-hub/external/eth"
Expand Down Expand Up @@ -80,7 +81,7 @@ func (s *BlobSyncer) verify() error {
if len(blobs) != 0 {
return fmt.Errorf("%d blobs within block_id[%d, %d] not found in bundle service", len(blobs), bundleStartBlockID, bundleEndBlockID)
}
if err = s.blobDao.UpdateBlocksStatus(bundleEndBlockID, bundleEndBlockID, db.Verified); err != nil {
if err = s.blobDao.UpdateBlocksStatus(bundleStartBlockID, bundleEndBlockID, db.Verified); err != nil {
return err
}
if err = s.blobDao.UpdateBundleStatus(bundleName, db.Sealed); err != nil {
Expand Down

0 comments on commit acc1f1e

Please sign in to comment.