@@ -1391,7 +1391,7 @@ func TestPrecommiterCalledWithDeliverState(t *testing.T) {
13911391
13921392func TestABCI_Proposal_HappyPath (t * testing.T ) {
13931393 anteKey := []byte ("ante-key" )
1394- pool := mempool .NewSenderNonceMempool ()
1394+ pool := mempool .NewSenderNonceMempool (mempool . SenderNonceMaxTxOpt ( 5000 ) )
13951395 anteOpt := func (bapp * baseapp.BaseApp ) {
13961396 bapp .SetAnteHandler (anteHandlerTxTest (t , capKey1 , anteKey ))
13971397 }
@@ -1569,7 +1569,7 @@ func TestABCI_Proposals_WithVE(t *testing.T) {
15691569
15701570func TestABCI_PrepareProposal_ReachedMaxBytes (t * testing.T ) {
15711571 anteKey := []byte ("ante-key" )
1572- pool := mempool .NewSenderNonceMempool ()
1572+ pool := mempool .NewSenderNonceMempool (mempool . SenderNonceMaxTxOpt ( 5000 ) )
15731573 anteOpt := func (bapp * baseapp.BaseApp ) {
15741574 bapp .SetAnteHandler (anteHandlerTxTest (t , capKey1 , anteKey ))
15751575 }
@@ -1599,7 +1599,7 @@ func TestABCI_PrepareProposal_ReachedMaxBytes(t *testing.T) {
15991599
16001600func TestABCI_PrepareProposal_BadEncoding (t * testing.T ) {
16011601 anteKey := []byte ("ante-key" )
1602- pool := mempool .NewSenderNonceMempool ()
1602+ pool := mempool .NewSenderNonceMempool (mempool . SenderNonceMaxTxOpt ( 5000 ) )
16031603 anteOpt := func (bapp * baseapp.BaseApp ) {
16041604 bapp .SetAnteHandler (anteHandlerTxTest (t , capKey1 , anteKey ))
16051605 }
@@ -1626,7 +1626,7 @@ func TestABCI_PrepareProposal_BadEncoding(t *testing.T) {
16261626}
16271627
16281628func TestABCI_PrepareProposal_OverGasUnderBytes (t * testing.T ) {
1629- pool := mempool .NewSenderNonceMempool ()
1629+ pool := mempool .NewSenderNonceMempool (mempool . SenderNonceMaxTxOpt ( 5000 ) )
16301630 suite := NewBaseAppSuite (t , baseapp .SetMempool (pool ))
16311631 baseapptestutil .RegisterCounterServer (suite .baseApp .MsgServiceRouter (), NoopCounterServerImpl {})
16321632
@@ -1667,7 +1667,7 @@ func TestABCI_PrepareProposal_OverGasUnderBytes(t *testing.T) {
16671667}
16681668
16691669func TestABCI_PrepareProposal_MaxGas (t * testing.T ) {
1670- pool := mempool .NewSenderNonceMempool ()
1670+ pool := mempool .NewSenderNonceMempool (mempool . SenderNonceMaxTxOpt ( 5000 ) )
16711671 suite := NewBaseAppSuite (t , baseapp .SetMempool (pool ))
16721672 baseapptestutil .RegisterCounterServer (suite .baseApp .MsgServiceRouter (), NoopCounterServerImpl {})
16731673
@@ -1705,7 +1705,7 @@ func TestABCI_PrepareProposal_MaxGas(t *testing.T) {
17051705
17061706func TestABCI_PrepareProposal_Failures (t * testing.T ) {
17071707 anteKey := []byte ("ante-key" )
1708- pool := mempool .NewSenderNonceMempool ()
1708+ pool := mempool .NewSenderNonceMempool (mempool . SenderNonceMaxTxOpt ( 5000 ) )
17091709 anteOpt := func (bapp * baseapp.BaseApp ) {
17101710 bapp .SetAnteHandler (anteHandlerTxTest (t , capKey1 , anteKey ))
17111711 }
0 commit comments