Versions in this module Expand all Collapse all v0 v0.6.1 Jan 21, 2020 Changes in this version + const CONSENSUS_DBFT + const CONSENSUS_SOLO + const CONSENSUS_VBFT + func InitPolicy() + type ConsensusService interface + GetPID func() *actor.PID + Halt func() error + Start func() error + func NewConsensusService(consensusType string, account *account.Account, txpool *actor.PID, ...) (ConsensusService, error) + type Policy struct + List []common.Address + PolicyLevel PolicyLevel + var DefaultPolicy *Policy + func NewPolicy() *Policy + func (p *Policy) Refresh() + type PolicyLevel byte + const AllowAll + const AllowList + const DenyAll + const DenyList