Skip to content

Commit

Permalink
Update MaxBatchBytesSize (0xPolygonHermez#1452)
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaubennassar authored Dec 13, 2022
1 parent b14bf16 commit 9c46024
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ func Test_Defaults(t *testing.T) {
},
{
path: "Sequencer.MaxBatchBytesSize",
expectedValue: 30000,
expectedValue: 150000,
},
{
path: "Sequencer.MaxTimeForBatchToBeOpen",
Expand Down
2 changes: 1 addition & 1 deletion config/default.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ MaxTimeForBatchToBeOpen = "15s"
BlocksAmountForTxsToBeDeleted = 100
FrequencyToCheckTxsForDelete = "12h"
MaxTxsPerBatch = 150
MaxBatchBytesSize = 30000
MaxBatchBytesSize = 150000
MaxCumulativeGasUsed = 30000000
MaxKeccakHashes = 468
MaxPoseidonHashes = 279620
Expand Down
2 changes: 1 addition & 1 deletion config/environments/local/local.node.config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ MaxTimeForBatchToBeOpen = "15s"
BlocksAmountForTxsToBeDeleted = 100
FrequencyToCheckTxsForDelete = "12h"
MaxTxsPerBatch = 150
MaxBatchBytesSize = 30000
MaxBatchBytesSize = 150000
MaxCumulativeGasUsed = 30000000
MaxKeccakHashes = 468
MaxPoseidonHashes = 279620
Expand Down
2 changes: 1 addition & 1 deletion sequencer/sequencer_internal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ func TestTryToProcessTxs(t *testing.T) {
gpe := new(sequencerMocks.GasPriceEstimatorMock)
s := Sequencer{cfg: Config{
MaxTimeForBatchToBeOpen: cfgTypes.NewDuration(5 * time.Second),
MaxBatchBytesSize: 30000,
MaxBatchBytesSize: 150000,
MaxTxsPerBatch: 150,
}, state: st, etherman: eth, gpe: gpe, pool: pl}
ctx := context.Background()
Expand Down
2 changes: 1 addition & 1 deletion test/config/debug.node.config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ MaxTimeForBatchToBeOpen = "15s"
BlocksAmountForTxsToBeDeleted = 100
FrequencyToCheckTxsForDelete = "12h"
MaxTxsPerBatch = 150
MaxBatchBytesSize = 30000
MaxBatchBytesSize = 150000
MaxCumulativeGasUsed = 30000000
MaxKeccakHashes = 468
MaxPoseidonHashes = 279620
Expand Down
2 changes: 1 addition & 1 deletion test/config/test.node.config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ MaxTimeForBatchToBeOpen = "15s"
BlocksAmountForTxsToBeDeleted = 100
FrequencyToCheckTxsForDelete = "12h"
MaxTxsPerBatch = 150
MaxBatchBytesSize = 30000
MaxBatchBytesSize = 150000
MaxCumulativeGasUsed = 30000000
MaxKeccakHashes = 468
MaxPoseidonHashes = 279620
Expand Down

0 comments on commit 9c46024

Please sign in to comment.