github.com/koko1123/flow-go-1@v0.29.6/consensus/hotstuff/forks/finalizer.go (about) 1 package forks 2 3 import ( 4 "github.com/koko1123/flow-go-1/consensus/hotstuff/model" 5 "github.com/koko1123/flow-go-1/model/flow" 6 ) 7 8 // Finalizer is responsible for block finalization. 9 type Finalizer interface { 10 VerifyBlock(*model.Block) error 11 IsSafeBlock(*model.Block) bool 12 AddBlock(*model.Block) error 13 GetBlock(blockID flow.Identifier) (*model.Block, bool) 14 GetBlocksForView(view uint64) []*model.Block 15 FinalizedBlock() *model.Block 16 LockedBlock() *model.Block 17 }