upgradefilter

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UpgradeFilter

type UpgradeFilter struct {
	bloom.TxFilter
}

Filter defines the side filter instance, it implements the TxFilter interface.

func New

func New() *UpgradeFilter

New returns a new UpgradeFilter instance.

func (*UpgradeFilter) Add

func (f *UpgradeFilter) Add(data []byte) error

Add adds new data into filter.

func (*UpgradeFilter) Load

func (f *UpgradeFilter) Load(filter []byte) error

Load loads the transaction filter.

func (*UpgradeFilter) MatchConfirmed

func (f *UpgradeFilter) MatchConfirmed(tx *types.Transaction) bool

MatchConfirmed returns if a confirmed (packed into a block) transaction matches the filter.

func (*UpgradeFilter) MatchUnconfirmed

func (f *UpgradeFilter) MatchUnconfirmed(tx *types.Transaction) bool

MatchUnconfirmed returns if a unconfirmed (not packed into a block yet) transaction matches the filter.

Jump to

Keyboard shortcuts

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