Documentation ¶
Index ¶
Constants ¶
View Source
const ( CONSENSUS_DBFT = "dbft" CONSENSUS_SOLO = "solo" CONSENSUS_VBFT = "vbft" )
Variables ¶
This section is empty.
Functions ¶
func InitPolicy ¶
func InitPolicy()
Types ¶
type ConsensusService ¶
type Policy ¶
type Policy struct { PolicyLevel PolicyLevel List []common.Address }
var DefaultPolicy *Policy
type PolicyLevel ¶
type PolicyLevel byte
const ( AllowAll PolicyLevel = 0x00 DenyAll PolicyLevel = 0x01 AllowList PolicyLevel = 0x02 DenyList PolicyLevel = 0x03 )
Click to show internal directories.
Click to hide internal directories.