Skip to content

Commit

Permalink
Fix: Epoch finalization
Browse files Browse the repository at this point in the history
  • Loading branch information
cyyber committed Sep 14, 2022
1 parent f77c6eb commit 37f3374
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions block/block.go
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,12 @@ func (b *Block) UpdateFinalizedEpoch(db *db.DB, stateContext *state.StateContext
return nil
}

bm, err = metadata.GetBlockMetaData(db, bm.ParentHeaderHash())
if err != nil {
log.Error("[UpdateFinalizedEpoch] Failed to GetBlockMetaData")
return err
}

for {
newBM, err := metadata.GetBlockMetaData(db, bm.ParentHeaderHash())
if err != nil {
Expand Down

0 comments on commit 37f3374

Please sign in to comment.