pool

package
v0.2.9 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2020 License: ISC Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pool

type Pool struct {
	// contains filtered or unexported fields
}

func NewPool

func NewPool(horn *horn.Horn, msgMgt msglist.IMsgList) *Pool

func (*Pool) All

func (p *Pool) All() ([]types.IMessage, []types.IMessage)

Get all transactions in the trading pool

func (*Pool) Delete

func (p *Pool) Delete(msg types.IMessage)

func (*Pool) Info

func (p *Pool) Info() map[string]interface{}

func (*Pool) Name

func (p *Pool) Name() string

func (*Pool) NeedPackaged

func (p *Pool) NeedPackaged(count int) []types.IMessage

func (*Pool) Put

func (p *Pool) Put(msg types.IMessage, isPeer bool) error

Verify adding messages to the message pool

func (*Pool) ReceiveMsgFromPeer

func (p *Pool) ReceiveMsgFromPeer(msg types.IMessage) error

func (*Pool) Start

func (p *Pool) Start() error

func (*Pool) Stop

func (p *Pool) Stop() error

Jump to

Keyboard shortcuts

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