mempool

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 7 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 New

func New(db dbm.DB) *Pool

func (*Pool) Dequeue

func (p *Pool) Dequeue() (_ comettypes.Tx, err error)

Dequeue returns the transaction with the highest priority from the pool

func (*Pool) Enqueue

func (p *Pool) Enqueue(userTxn comettypes.Tx) (err error)

func (*Pool) Len

func (p *Pool) Len() (uint64, error)

Jump to

Keyboard shortcuts

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