example

package
v0.0.0-...-c1683cc Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2024 License: CC-BY-4.0 Imports: 13 Imported by: 0

README

Snowman consensus example

./run-single-node.sh

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBlock

func NewBlock(id ids.ID, parent ids.ID, height uint64, timestamp time.Time) snowman.Block

func ParseBlock

func ParseBlock(b []byte) (snowman.Block, error)

Types

type Instance

type Instance struct {
	Ctx        *snow.ConsensusContext
	Params     snowball.Parameters
	Consensus  snowman.Consensus
	GenesisBlk snowman.Block
}

func New

func New(logLvl logging.Level, sbParams snowball.Parameters) (Instance, error)

Creates a new snowman consensus instance with the provided parameters with an automatically generated genesis block.

Directories

Path Synopsis
single-node

Jump to

Keyboard shortcuts

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