github.com/koko1123/flow-go-1@v0.29.6/consensus/hotstuff/follower_logic.go (about) 1 package hotstuff 2 3 import ( 4 "github.com/koko1123/flow-go-1/consensus/hotstuff/model" 5 ) 6 7 // FollowerLogic runs a state machine to process proposals 8 type FollowerLogic interface { 9 // FinalizedBlock returns the latest finalized block 10 FinalizedBlock() *model.Block 11 12 // AddBlock processes a block proposal 13 AddBlock(proposal *model.Proposal) error 14 }