consensusreference

package
v0.0.0-...-decf009 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2023 License: ISC Imports: 1 Imported by: 0

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 **externalapi.Consensus) ConsensusReference

NewConsensusReference constructs a new ConsensusReference

func (ConsensusReference) Consensus

func (ref ConsensusReference) Consensus() externalapi.Consensus

Consensus returns the underlying consensus

Jump to

Keyboard shortcuts

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