mpoolmonitor

package
v1.7.5 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2023 License: Apache-2.0, MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MpoolMonitor

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

func NewMonitor

func NewMonitor(fullNode v1api.FullNode, mpoolAlertEpochs int64) *MpoolMonitor

func (*MpoolMonitor) Alerts

func (mm *MpoolMonitor) Alerts(ctx context.Context) ([]cid.Cid, error)

func (*MpoolMonitor) PendingAll

func (mm *MpoolMonitor) PendingAll() ([]*TimeStampedMsg, error)

func (*MpoolMonitor) PendingLocal

func (mm *MpoolMonitor) PendingLocal(ctx context.Context) ([]*TimeStampedMsg, error)

func (*MpoolMonitor) Start

func (mm *MpoolMonitor) Start(ctx context.Context) error

func (*MpoolMonitor) Stop

func (mm *MpoolMonitor) Stop(ctx context.Context) error

type TimeStampedMsg

type TimeStampedMsg struct {
	SignedMessage types.SignedMessage
	Added         abi.ChainEpoch // Epoch when message was first noticed in mpool
	AddedTime     time.Time
}

TimeStampedMsg wraps the pending msg with a chainEpoch

Jump to

Keyboard shortcuts

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