examples

package
v1.22.45 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2025 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Overview

Package examples demonstrates integration between consensus and node packages

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunNodeIntegrationExample

func RunNodeIntegrationExample()

Types

type ExampleBlock

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

Example block for demonstration

func (*ExampleBlock) Accept

func (b *ExampleBlock) Accept(context.Context) error

func (*ExampleBlock) Bytes

func (b *ExampleBlock) Bytes() []byte

func (*ExampleBlock) Height

func (b *ExampleBlock) Height() uint64

func (*ExampleBlock) ID

func (b *ExampleBlock) ID() ids.ID

func (*ExampleBlock) ParentID

func (b *ExampleBlock) ParentID() ids.ID

func (*ExampleBlock) Reject

func (b *ExampleBlock) Reject(context.Context) error

func (*ExampleBlock) Timestamp

func (b *ExampleBlock) Timestamp() int64

func (*ExampleBlock) Verify

func (b *ExampleBlock) Verify(context.Context) error

Jump to

Keyboard shortcuts

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