@@ -1404,7 +1404,7 @@ func TestPrecommiterCalledWithDeliverState(t *testing.T) {
14041404
14051405func TestABCI_Proposal_HappyPath (t * testing.T ) {
14061406 anteKey := []byte ("ante-key" )
1407- pool := mempool .NewSenderNonceMempool ()
1407+ pool := mempool .NewSenderNonceMempool (mempool . SenderNonceMaxTxOpt ( 5000 ) )
14081408 anteOpt := func (bapp * baseapp.BaseApp ) {
14091409 bapp .SetAnteHandler (anteHandlerTxTest (t , capKey1 , anteKey ))
14101410 }
@@ -1582,7 +1582,7 @@ func TestABCI_Proposals_WithVE(t *testing.T) {
15821582
15831583func TestABCI_PrepareProposal_ReachedMaxBytes (t * testing.T ) {
15841584 anteKey := []byte ("ante-key" )
1585- pool := mempool .NewSenderNonceMempool ()
1585+ pool := mempool .NewSenderNonceMempool (mempool . SenderNonceMaxTxOpt ( 5000 ) )
15861586 anteOpt := func (bapp * baseapp.BaseApp ) {
15871587 bapp .SetAnteHandler (anteHandlerTxTest (t , capKey1 , anteKey ))
15881588 }
@@ -1612,7 +1612,7 @@ func TestABCI_PrepareProposal_ReachedMaxBytes(t *testing.T) {
16121612
16131613func TestABCI_PrepareProposal_BadEncoding (t * testing.T ) {
16141614 anteKey := []byte ("ante-key" )
1615- pool := mempool .NewSenderNonceMempool ()
1615+ pool := mempool .NewSenderNonceMempool (mempool . SenderNonceMaxTxOpt ( 5000 ) )
16161616 anteOpt := func (bapp * baseapp.BaseApp ) {
16171617 bapp .SetAnteHandler (anteHandlerTxTest (t , capKey1 , anteKey ))
16181618 }
@@ -1639,7 +1639,7 @@ func TestABCI_PrepareProposal_BadEncoding(t *testing.T) {
16391639}
16401640
16411641func TestABCI_PrepareProposal_OverGasUnderBytes (t * testing.T ) {
1642- pool := mempool .NewSenderNonceMempool ()
1642+ pool := mempool .NewSenderNonceMempool (mempool . SenderNonceMaxTxOpt ( 5000 ) )
16431643 suite := NewBaseAppSuite (t , baseapp .SetMempool (pool ))
16441644 baseapptestutil .RegisterCounterServer (suite .baseApp .MsgServiceRouter (), NoopCounterServerImpl {})
16451645
@@ -1680,7 +1680,7 @@ func TestABCI_PrepareProposal_OverGasUnderBytes(t *testing.T) {
16801680}
16811681
16821682func TestABCI_PrepareProposal_MaxGas (t * testing.T ) {
1683- pool := mempool .NewSenderNonceMempool ()
1683+ pool := mempool .NewSenderNonceMempool (mempool . SenderNonceMaxTxOpt ( 5000 ) )
16841684 suite := NewBaseAppSuite (t , baseapp .SetMempool (pool ))
16851685 baseapptestutil .RegisterCounterServer (suite .baseApp .MsgServiceRouter (), NoopCounterServerImpl {})
16861686
@@ -1719,7 +1719,7 @@ func TestABCI_PrepareProposal_MaxGas(t *testing.T) {
17191719
17201720func TestABCI_PrepareProposal_Failures (t * testing.T ) {
17211721 anteKey := []byte ("ante-key" )
1722- pool := mempool .NewSenderNonceMempool ()
1722+ pool := mempool .NewSenderNonceMempool (mempool . SenderNonceMaxTxOpt ( 5000 ) )
17231723 anteOpt := func (bapp * baseapp.BaseApp ) {
17241724 bapp .SetAnteHandler (anteHandlerTxTest (t , capKey1 , anteKey ))
17251725 }
0 commit comments