message

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2020 License: Apache-2.0, MIT Imports: 33 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GasOutputsProcessor

type GasOutputsProcessor struct {
	// contains filtered or unexported fields
}

GasOutputsProcessor is a task that processes messages with receipts to determine gas outputs.

func NewGasOutputsProcessor

func NewGasOutputsProcessor(d *storage.Database, opener lens.APIOpener, leaseLength time.Duration, batchSize int, minHeight, maxHeight int64, useLeases bool) *GasOutputsProcessor

func (*GasOutputsProcessor) Run

Run starts processing batches of messages until the context is done or an error occurs.

type MessageProcessor

type MessageProcessor struct {
	// contains filtered or unexported fields
}

MessageProcessor is a task that processes blocks to detect messages and persists their details to the database.

func NewMessageProcessor

func NewMessageProcessor(d *storage.Database, opener lens.APIOpener, leaseLength time.Duration, batchSize int, parseMessages bool, minHeight, maxHeight int64) *MessageProcessor

func (*MessageProcessor) Run

func (p *MessageProcessor) Run(ctx context.Context) error

Run starts processing batches of tipsets and blocks until the context is done or an error occurs.

Jump to

Keyboard shortcuts

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