readme for default gud

This commit is contained in:
David Terpay
2023-08-16 17:59:52 -04:00
parent e7d99a2948
commit c789c730b1
6 changed files with 45 additions and 133 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ import (
"github.com/skip-mev/pob/block"
)
// LaneConfig defines the basic functionality needed for a lane.
// LaneConfig defines the basic configurations needed for a lane.
type LaneConfig struct {
Logger log.Logger
TxEncoder sdk.TxEncoder
+2 -2
View File
@@ -11,7 +11,7 @@ import (
)
type (
// ConstructorMempool defines a mempool that orders transactions based on the
// Mempool defines a mempool that orders transactions based on the
// txPriority. The mempool is a wrapper on top of the SDK's Priority Nonce mempool.
// It include's additional helper functions that allow users to determine if a
// transaction is already in the mempool and to compare the priority of two
@@ -79,7 +79,7 @@ func DefaultTxPriority() TxPriority[string] {
}
}
// NewMempool returns a new ConstructorMempool.
// NewMempool returns a new Mempool.
func NewMempool[C comparable](txPriority TxPriority[C], txEncoder sdk.TxEncoder, maxTx int) *Mempool[C] {
return &Mempool[C]{
index: NewPriorityMempool(