consensus

package
Version: v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 18, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitPolicy

func InitPolicy()

Types

type ConsensusService

type ConsensusService interface {
	Start() error
	Halt() error
}

type Policy

type Policy struct {
	PolicyLevel PolicyLevel
	List        []common.Uint160
}
var DefaultPolicy *Policy

func NewPolicy

func NewPolicy() *Policy

func (*Policy) Refresh

func (p *Policy) Refresh()

type PolicyLevel

type PolicyLevel byte
const (
	AllowAll  PolicyLevel = 0x00
	DenyAll   PolicyLevel = 0x01
	AllowList PolicyLevel = 0x02
	DenyList  PolicyLevel = 0x03
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL