github.com/kisexp/xdchain@v0.0.0-20211206025815-490d6b732aa7/consensus/istanbul/core.go (about) 1 package istanbul 2 3 import "github.com/kisexp/xdchain/common" 4 5 type Core interface { 6 Start() error 7 Stop() error 8 IsProposer() bool 9 10 // verify if a hash is the same as the proposed block in the current pending request 11 // 12 // this is useful when the engine is currently the proposer 13 // 14 // pending request is populated right at the preprepare stage so this would give us the earliest verification 15 // to avoid any race condition of coming propagated blocks 16 IsCurrentProposal(blockHash common.Hash) bool 17 }