process

package
v0.2.0-alpha.0 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BlockProcessLimit = client.MediumLimit
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Block

type Block struct {
	Status StatusHeight
	Delay  int
	UseRaw bool
	Shard  int
	// contains filtered or unexported fields
}

func NewBlockRaw

func NewBlockRaw(shard int, statusHeight StatusHeight, txSave dbi.TxSave) *Block

func NewBlockShard

func NewBlockShard(shard int, status StatusHeight, txSave dbi.TxSave) *Block

func (*Block) Process

func (t *Block) Process() error

Process goes through all blocks, read tx_outputs, save outputs

func (*Block) ProcessBlock

func (t *Block) ProcessBlock(heightBlock *HeightBlock) error

type HeightBlock

type HeightBlock struct {
	Height    int64
	BlockHash []byte
}

type Status

type Status interface {
	GetHeight() (int64, error)
	SetHeight(int64) error
}

type StatusHeight

type StatusHeight interface {
	GetHeight() (status.BlockHeight, error)
	SetHeight(status.BlockHeight) error
}

Jump to

Keyboard shortcuts

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