txpool

package
v0.0.0-...-bda353b Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// TypeDefault NORMAL
	TypeDefault = normal.TxPoolType
)

Variables

This section is empty.

Functions

func RegisterTxPoolProvider

func RegisterTxPoolProvider(t string, f Provider)

RegisterTxPoolProvider register tx pool provider @param t @param f

Types

type Provider

type Provider func(
	nodeId string,
	chainId string,
	txFilter protocol.TxFilter,
	chainStore protocol.BlockchainStore,
	msgBus msgbus.MessageBus,
	chainConf protocol.ChainConf,
	singer protocol.SigningParticipant,
	ac protocol.AccessControlProvider,
	netService protocol.NetService,
	log protocol.Logger,
	monitorEnabled bool,
	poolConfig map[string]interface{}) (protocol.TxPool, error)

Provider provide protocol.TxPool implement

func GetTxPoolProvider

func GetTxPoolProvider(t string) Provider

GetTxPoolProvider get provider by name @param t @return Provider

Jump to

Keyboard shortcuts

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