consensus

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2023 License: MIT Imports: 16 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Sync

func Sync(gc []byte, db database.Database, cfg *infraconfig.Config)

func VerfiyNonce

func VerfiyNonce(i int) (string, bool)

func VerifyMerkleRoot

func VerifyMerkleRoot() (string, bool)

func VerifyMessage

func VerifyMessage() (string, bool)

func VerifyPreviousHash

func VerifyPreviousHash() (string, bool)

func VerifyTimestamp

func VerifyTimestamp(i int) (string, bool)

func VerifyTransaction

func VerifyTransaction() (string, bool)

Types

type Config

type Config struct {
	dagconfig.Params
	// IsArchival tells the consensus if it should not prune old blocks
	IsArchival bool
	// EnableSanityCheckPruningUTXOSet checks the full pruning point utxo set against the commitment at every pruning movement
	EnableSanityCheckPruningUTXOSet bool

	SkipAddingGenesis bool
}

type Factory

type Factory interface {
	NewConsensus(config *Config, db database.Database, consensusEventsChan chan external.ConsensusEvent) (
		external.Consensus, error)
}

func NewFactory

func NewFactory() Factory

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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