collectordto

package
v0.0.0-...-7107d2d Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockData

type BlockData struct {
	// BlockNum is a number of block
	BlockNum uint64
	// Txs is a slice with transactions
	Txs [][]byte
	// Swaps is a slice with swap transactions
	Swaps []*proto.Swap
	// MultiSwaps is a slice with multi swap transactions
	MultiSwaps []*proto.MultiSwap
	// SwapsKeys is a slice with swap key transactions
	SwapsKeys []*proto.SwapKey
	// MultiSwapsKeys is a slice with multi swap key transactions
	MultiSwapsKeys []*proto.SwapKey
	// Size is a size of block
	Size uint
}

BlockData is a struct with data from block

func (*BlockData) IsEmpty

func (d *BlockData) IsEmpty() bool

IsEmpty returns true if block data is empty

func (*BlockData) ItemsCount

func (d *BlockData) ItemsCount() uint

ItemsCount returns count of items in block data

Jump to

Keyboard shortcuts

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