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 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
Click to show internal directories.
Click to hide internal directories.