types

package
v0.1.0-alpha9 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const MaxBlockNum = 0xffffffff

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockPosition

type BlockPosition struct {
	BlockNum chain.BlockNum
	BlockId  chain.Checksum256
}

type GetBlocksAckRequest

type GetBlocksAckRequest struct {
	NumMessages uint32
}

type GetBlocksRequest

type GetBlocksRequest struct {
	StartBlockNum       chain.BlockNum
	EndBlockNum         chain.BlockNum
	MaxMessagesInFlight uint32
	HavePositions       []BlockPosition
	IrreversibleOnly    bool
	FetchBlock          bool
	FetchTraces         bool
	FetchDeltas         bool
	FetchBlockHeader    bool
}

type GetBlocksResult

type GetBlocksResult struct {
	Head             BlockPosition
	LastIrreversible BlockPosition
	ThisBlock        *BlockPosition
	PrevBlock        *BlockPosition
	Block            chain.Bytes
	BlockHeader      chain.Bytes
	Traces           chain.Bytes
	Deltas           chain.Bytes
}

type GetStatusResult

type GetStatusResult struct {
	Head                 BlockPosition
	LastIrreversible     BlockPosition
	TraceBeginBlock      chain.BlockNum
	TraceEndBlock        chain.BlockNum
	ChainStateBeginBlock chain.BlockNum
	ChainStateEndBlock   chain.BlockNum
	ChainId              chain.Checksum256
}

Jump to

Keyboard shortcuts

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