Documentation ¶
Overview ¶
Package selector provides different transaction selecting algorithms.
Index ¶
Constants ¶
View Source
const ( StrategyTip = "tip" StrategyTipAdvanced = "tip_advanced" )
List of different select strategies.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Func ¶
type Func func(transactions map[database.AccountID][]database.BlockTx, howMany int) []database.BlockTx
Func defines a function that takes a mempool of transactions grouped by account and selects howMany of them in an order based on the functions strategy. All selector functions MUST respect nonce ordering. Receiving 0 for howMany must return all the transactions in the strategies ordering.
Click to show internal directories.
Click to hide internal directories.