ranged

package
v0.9.5 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2022 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHBTxPool

func NewHBTxPool(cap int) *hBTxPool

Types

type BTX

type BTX interface {
	BlockAndTx(ctx context.Context, height uint64) (blockWM structs.BlockWithMeta, txsWM []structs.TransactionWithMeta, err error)
}

type OutH

type OutH struct {
	Height uint64
	Block  structs.BlockWithMeta
	Error  error
}

type RangeRequester

type RangeRequester struct {
	BTX BTX
	// contains filtered or unexported fields
}

func NewRangeRequester

func NewRangeRequester(btx BTX, workers int) *RangeRequester

func (*RangeRequester) GetRange

func (rr *RangeRequester) GetRange(ctx context.Context, hr structs.HeightRange) (h structs.Heights, err error)

getRange gets given range of blocks and transactions

Jump to

Keyboard shortcuts

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