consensusreference

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: MIT Imports: 1 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConsensusReference

type ConsensusReference struct {
	// contains filtered or unexported fields
}

ConsensusReference holds a reference to a consensus object. The consensus object may be swapped with a new one entirely during the IBD process. Before an atomic consensus operation, callers are expected to call Consensus() once and work against that instance throughout.

func NewConsensusReference

func NewConsensusReference(consensus **external.Consensus) ConsensusReference

NewConsensusReference constructs a new ConsensusReference

func (ConsensusReference) Consensus

func (ref ConsensusReference) Consensus() external.Consensus

Consensus returns the underlying consensus

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL