Documentation ¶
Index ¶
- func New(cfg *types.Mempool, sub []byte) queue.Module
- type Queue
- func (cache *Queue) Exist(hash string) bool
- func (cache *Queue) GetItem(hash string) (*mempool.Item, error)
- func (cache *Queue) GetProperFee() int64
- func (cache *Queue) Push(item *mempool.Item) error
- func (cache *Queue) Remove(hash string) error
- func (cache *Queue) Size() int
- func (cache *Queue) Walk(count int, cb func(value *mempool.Item) bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Queue ¶
type Queue struct {
// contains filtered or unexported fields
}
Queue 价格队列模式(价格=手续费/交易字节数,价格高者优先,同价则时间早优先)
func (*Queue) GetProperFee ¶
GetProperFee 获取合适的手续费率,取前100的平均手续费率
Click to show internal directories.
Click to hide internal directories.