customidfilter

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 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 CustomIdFilter

type CustomIdFilter struct {
	bloom.TxFilter
}

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

func New

func New() *CustomIdFilter

New returns a new CustomIdFilter instance.

func (*CustomIdFilter) Add

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

Add adds new data into filter.

func (*CustomIdFilter) Load

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

Load loads the transaction filter.

func (*CustomIdFilter) MatchConfirmed

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

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

func (*CustomIdFilter) MatchUnconfirmed

func (f *CustomIdFilter) 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