Versions in this module Expand all Collapse all v0 v0.9.0 Sep 26, 2019 Changes in this version + const NewBlockMsg + var ErrContractNotFound = errors.New("contract not found") + func New(config *params.IstanbulConfig, privateKey *ecdsa.PrivateKey, db ethdb.Database) consensus.Istanbul + type API struct + func (api *API) Candidates() map[common.Address]bool + func (api *API) Discard(address common.Address) + func (api *API) GetSnapshot(number *rpc.BlockNumber) (*Snapshot, error) + func (api *API) GetSnapshotAtHash(hash common.Hash) (*Snapshot, error) + func (api *API) GetValidators(number *rpc.BlockNumber) ([]common.Address, error) + func (api *API) GetValidatorsAtHash(hash common.Hash) ([]common.Address, error) + func (api *API) Propose(address common.Address, auth bool) + type CBFTProduceBlockCfg struct + BlockInterval int32 + ProduceDuration int32 + type ChainContext struct + func (cc *ChainContext) Engine() consensus.Engine + func (cc *ChainContext) GetHeader(hash common.Hash, number uint64) *types.Header + type Snapshot struct + Epoch uint64 + Hash common.Hash + Number uint64 + Tally map[common.Address]Tally + ValSet istanbul.ValidatorSet + Votes []*Vote + func (s *Snapshot) MarshalJSON() ([]byte, error) + func (s *Snapshot) UnmarshalJSON(b []byte) error + type Tally struct + Authorize bool + Votes int + type Vote struct + Address common.Address + Authorize bool + Block uint64 + Validator common.Address