Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsCritical ¶
IsCritical returns if the error is consensus related.
func IsFutureBlock ¶
IsFutureBlock returns if the error indicates that the block should be processed later.
Types ¶
type Consensus ¶
type Consensus struct {
// contains filtered or unexported fields
}
Consensus check whether the block is verified, and predicate which trunk it belong to.
func New ¶
func New(repo *chain.Repository, stater *state.Stater, forkConfig thor.ForkConfig) *Consensus
New create a Consensus instance.
func (*Consensus) NewRuntimeForReplay ¶ added in v1.0.5
Click to show internal directories.
Click to hide internal directories.