mempool

package
v0.7.4 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2026 License: Apache-2.0 Imports: 27 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	TxGas = 100_000
)

Constants

Variables

This section is empty.

Functions

This section is empty.

Types

type IntegrationTestSuite

type IntegrationTestSuite struct {
	suite.Suite
	// contains filtered or unexported fields
}

MempoolIntegrationTestSuite is the base test suite for mempool integration tests. It provides the infrastructure to test mempool behavior without mocks.

func NewMempoolIntegrationTestSuite

func NewMempoolIntegrationTestSuite(create network.CreateEvmApp, options ...network.ConfigOption) *IntegrationTestSuite

NewMempoolIntegrationTestSuite creates a new instance of the test suite.

func (*IntegrationTestSuite) FundAccount

func (s *IntegrationTestSuite) FundAccount(addr sdk.AccAddress, amount sdkmath.Int, denom string)

FundAccount funds an account with a specific amount of a given denomination.

func (*IntegrationTestSuite) GetAllBalances

func (s *IntegrationTestSuite) GetAllBalances(addr sdk.AccAddress) sdk.Coins

GetAllBalances returns all balances for the given account address.

func (*IntegrationTestSuite) SetupTest

func (s *IntegrationTestSuite) SetupTest()

SetupTest initializes the test environment with default settings.

func (*IntegrationTestSuite) SetupTestWithChainID

func (s *IntegrationTestSuite) SetupTestWithChainID(chainID testconstants.ChainID)

SetupTestWithChainID initializes the test environment with a specific chain ID.

func (*IntegrationTestSuite) TearDownTest added in v0.7.0

func (s *IntegrationTestSuite) TearDownTest()

TearDownTest cleans up resources after each test.

func (*IntegrationTestSuite) TestBasicSetupAndReadiness

func (s *IntegrationTestSuite) TestBasicSetupAndReadiness()

TestBasicSetupAndReadiness tests comprehensive mempool initialization and readiness

func (*IntegrationTestSuite) TestEVMTransactionComprehensive

func (s *IntegrationTestSuite) TestEVMTransactionComprehensive()

TestEVMTransactionComprehensive tests comprehensive EVM transaction functionality

func (*IntegrationTestSuite) TestMempoolHeightRequirement

func (s *IntegrationTestSuite) TestMempoolHeightRequirement()

TestMempoolHeightRequirement tests that mempool operations fail before block 2

func (*IntegrationTestSuite) TestMempoolInsert

func (s *IntegrationTestSuite) TestMempoolInsert()

TestMempoolInsert tests transaction insertion into the mempool

func (*IntegrationTestSuite) TestMempoolIterator

func (s *IntegrationTestSuite) TestMempoolIterator()

TestMempoolIterator tests iterator functionality

func (*IntegrationTestSuite) TestMempoolRemove

func (s *IntegrationTestSuite) TestMempoolRemove()

TestMempoolRemove tests transaction removal from the mempool

func (*IntegrationTestSuite) TestMempoolSelect

func (s *IntegrationTestSuite) TestMempoolSelect()

TestMempoolSelect tests transaction selection from the mempool

func (*IntegrationTestSuite) TestMultiPoolInteractions added in v0.7.0

func (s *IntegrationTestSuite) TestMultiPoolInteractions()

func (*IntegrationTestSuite) TestNonceGappedEVMTransactions

func (s *IntegrationTestSuite) TestNonceGappedEVMTransactions()

TestNonceGappedEVMTransactions tests the behavior of nonce-gapped EVM transactions and the transition from queued to pending when gaps are filled

func (*IntegrationTestSuite) TestNonceGappedEVMTransactionsWithABCIMethodCalls added in v0.5.0

func (s *IntegrationTestSuite) TestNonceGappedEVMTransactionsWithABCIMethodCalls()

TestNonceGappedEVMTransactionsWithABCIMethodCalls tests the behavior of nonce-gapped EVM transactions and the transition from queued to pending when gaps are filled

func (*IntegrationTestSuite) TestRechecking added in v0.7.0

func (s *IntegrationTestSuite) TestRechecking()

func (*IntegrationTestSuite) TestSelectBy

func (s *IntegrationTestSuite) TestSelectBy()

TestSelectBy tests the SelectBy functionality with filters

func (*IntegrationTestSuite) TestTransactionOrdering

func (s *IntegrationTestSuite) TestTransactionOrdering()

TestTransactionOrdering tests transaction ordering based on fees

func (*IntegrationTestSuite) TestTransactionOrderingWithABCIMethodCalls added in v0.5.0

func (s *IntegrationTestSuite) TestTransactionOrderingWithABCIMethodCalls()

TestTransactionOrderingWithABCIMethodCalls tests transaction ordering based on fees

func (*IntegrationTestSuite) TrySetupMempool added in v0.7.0

func (s *IntegrationTestSuite) TrySetupMempool()

TrySetupMempool sets up the Mempool, if it is the configured mempool on the suite.

Jump to

Keyboard shortcuts

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