Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ListenPool ¶
type ListenPool struct { Transactions []types.Transaction Size int ChanListen chan int // contains filtered or unexported fields }
func NewListenPool ¶
func NewListenPool() *ListenPool
func (*ListenPool) Obtain ¶
func (p *ListenPool) Obtain(cp func(interface{}) bool, tranSizeLimit int) []types.Transaction
func (*ListenPool) PackageTransaction ¶
func (p *ListenPool) PackageTransaction(transactions []types.Transaction)
func (*ListenPool) Push ¶
func (p *ListenPool) Push(tran types.Transaction)
Click to show internal directories.
Click to hide internal directories.