pvm

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2021 License: BSD-3-Clause Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MaxSerializationLen = (16 * 1024 * 1024) - 1

	ChainID = ids.ID{}

	ErrUnknownBlockType = errors.New("unknown block type")
)

Functions

This section is empty.

Types

type Writer added in v1.1.0

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

func NewWriter added in v1.1.0

func NewWriter(networkID uint32, chainID string) (*Writer, error)

func (*Writer) Bootstrap added in v1.1.0

func (w *Writer) Bootstrap(ctx context.Context, conns *services.Connections, persist services.Persist) error

func (*Writer) Consume added in v1.1.0

func (w *Writer) Consume(ctx context.Context, conns *services.Connections, c services.Consumable, persist services.Persist) error

func (*Writer) ConsumeConsensus added in v1.1.2

func (*Writer) InsertTransactionBlock added in v1.1.3

func (w *Writer) InsertTransactionBlock(ctx services.ConsumerCtx, txID ids.ID, blkTxID ids.ID) error

func (*Writer) InsertTransactionValidator added in v1.1.3

func (w *Writer) InsertTransactionValidator(ctx services.ConsumerCtx, txID ids.ID, validator platformvm.Validator) error

func (*Writer) Name added in v1.1.0

func (*Writer) Name() string

func (*Writer) ParseJSON added in v1.2.0

func (w *Writer) ParseJSON(txBytes []byte) ([]byte, error)

Jump to

Keyboard shortcuts

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