listenpool

package
v0.0.0-...-9faecf3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 13, 2020 License: LGPL-3.0 Imports: 4 Imported by: 0

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL