Documentation
¶
Overview ¶
Package filterdefault transaction filter implementation
Index ¶
- type TxFilter
- func (f TxFilter) Add(_ string) error
- func (f TxFilter) Adds(_ []string) error
- func (f TxFilter) AddsAndSetHeight(_ []string, _ uint64) error
- func (f TxFilter) Close()
- func (f TxFilter) GetHeight() uint64
- func (f TxFilter) IsExists(txId string, _ ...birdsnest.RuleType) (bool, *txfilter.Stat, error)
- func (f TxFilter) IsExistsAndReturnHeight(txId string, _ ...birdsnest.RuleType) (bool, uint64, *txfilter.Stat, error)
- func (f TxFilter) SetHeight(_ uint64)
- func (f TxFilter) ValidateRule(_ string, _ ...birdsnest.RuleType) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TxFilter ¶
type TxFilter struct {
// contains filtered or unexported fields
}
TxFilter protocol.BlockchainStore transaction filter
func (TxFilter) AddsAndSetHeight ¶
AddsAndSetHeight batch add tx id and set height
func (TxFilter) IsExistsAndReturnHeight ¶
func (f TxFilter) IsExistsAndReturnHeight(txId string, _ ...birdsnest.RuleType) (bool, uint64, *txfilter.Stat, error)
IsExistsAndReturnHeight is exists and return height
Click to show internal directories.
Click to hide internal directories.