package
Version:
v1.67.0
Opens a new window with list of versions in this module.
Published: Mar 21, 2022
License: BSD-3-Clause
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 7
Opens a new window with list of known importers.
Documentation
¶
New 创建score cache 结构的 mempool
Queue 分数队列模式(分数=定量a*常量b*手续费/交易字节数-常量c*时间,按分数排队,高的优先,定量a和常量b,c可配置)
func NewQueue(subcfg subConfig) *Queue
NewQueue 创建队列
Push 把给定tx添加到Queue;如果tx已经存在Queue中或Mempool已满则返回对应error
Source Files
¶
Click to show internal directories.
Click to hide internal directories.