Documentation ¶
Overview ¶
Package mapimpl transaction filter implementation
Index ¶
- type TxFilter
- func (f *TxFilter) Add(txId string) error
- func (f *TxFilter) Adds(txIds []string) error
- func (f *TxFilter) AddsAndSetHeight(txId []string, height uint64) error
- func (f *TxFilter) Close()
- func (f *TxFilter) GetHeight() uint64
- func (f *TxFilter) IsExists(txId string, _ ...bn.RuleType) (bool, *txfilter.Stat, error)
- func (f *TxFilter) IsExistsAndReturnHeight(txId string, _ ...bn.RuleType) (bool, uint64, *txfilter.Stat, error)
- func (f *TxFilter) SetHeight(height uint64)
- func (f *TxFilter) ValidateRule(_ string, _ ...bn.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 sync.Map transaction filter
func (*TxFilter) AddsAndSetHeight ¶
AddsAndSetHeight batch add tx id and set height
func (*TxFilter) IsExistsAndReturnHeight ¶
func (f *TxFilter) IsExistsAndReturnHeight(txId string, _ ...bn.RuleType) (bool, uint64, *txfilter.Stat, error)
IsExistsAndReturnHeight is exists and return height
Click to show internal directories.
Click to hide internal directories.