package
Version:
v1.0.0
Opens a new window with list of versions in this module.
Published: Jun 25, 2019
License: GPL-3.0
Opens a new window with license information.
Imports: 21
Opens a new window with list of imports.
Imported by: 6
Opens a new window with list of known importers.
Documentation
¶
Package core implements core functionality of istanbul consensus engine.
PrepareCommittedSeal returns a committed seal for the given hash
type Engine interface {
Start() error
Stop() error
}
New creates an Istanbul consensus core
const (
StateAcceptRequest State = iota
StatePreprepared
StatePrepared
StateCommitted
)
Cmp compares s and y and returns:
-1 if s is the previous state of y
0 if s and y are the same state
+1 if s is the next state of y
Source Files
¶
Click to show internal directories.
Click to hide internal directories.