Skip to content

Commit 13cb45f

Browse files
mollkeithmollkeith
authored andcommitted
feat(bpos): reset consensus in pow
1 parent a3dde56 commit 13cb45f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dpos/manager/dposmanager.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -567,8 +567,8 @@ func (d *DPOSManager) OnBlockReceived(b *types.Block, confirmed bool) {
567567
d.changeHeight()
568568
if b.Height > d.dispatcher.GetFinishedHeight() {
569569
// need to reset consensus
570-
log.Info("### OnBlockReceived set ready ", b.Height)
571-
d.consensus.SetReady(b.Height)
570+
log.Info("### OnBlockReceived resset consensus ", b.Height)
571+
d.dispatcher.resetConsensus(b.Height)
572572
}
573573
log.Info("### [OnBlockReceived] return because in POW mode, height:", b.Height)
574574
return

0 commit comments

Comments
 (0)