core.go 513 B

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