Skip to content
This repository was archived by the owner on Feb 17, 2025. It is now read-only.

Commit

Permalink
Fix doc. Fix e2e test group 4
Browse files Browse the repository at this point in the history
  • Loading branch information
agnusmor committed Jul 16, 2024
1 parent 6691a05 commit 9573bec
Show file tree
Hide file tree
Showing 6 changed files with 70 additions and 70 deletions.
2 changes: 1 addition & 1 deletion docs/config-file/node-config-doc.html

Large diffs are not rendered by default.

48 changes: 24 additions & 24 deletions docs/config-file/node-config-doc.md
Original file line number Diff line number Diff line change
Expand Up @@ -4291,96 +4291,96 @@ MaxCumulativeGasUsed=1125899906842624

**Type:** : `integer`

**Default:** `2145`
**Default:** `9268`

**Example setting the default value** (2145):
**Example setting the default value** (9268):
```
[State.Batch.Constraints]
MaxKeccakHashes=2145
MaxKeccakHashes=9268
```

##### <a name="State_Batch_Constraints_MaxPoseidonHashes"></a>20.9.1.5. `State.Batch.Constraints.MaxPoseidonHashes`

**Type:** : `integer`

**Default:** `252357`
**Default:** `1090693`

**Example setting the default value** (252357):
**Example setting the default value** (1090693):
```
[State.Batch.Constraints]
MaxPoseidonHashes=252357
MaxPoseidonHashes=1090693
```

##### <a name="State_Batch_Constraints_MaxPoseidonPaddings"></a>20.9.1.6. `State.Batch.Constraints.MaxPoseidonPaddings`

**Type:** : `integer`

**Default:** `135191`
**Default:** `584300`

**Example setting the default value** (135191):
**Example setting the default value** (584300):
```
[State.Batch.Constraints]
MaxPoseidonPaddings=135191
MaxPoseidonPaddings=584300
```

##### <a name="State_Batch_Constraints_MaxMemAligns"></a>20.9.1.7. `State.Batch.Constraints.MaxMemAligns`

**Type:** : `integer`

**Default:** `236585`
**Default:** `1022525`

**Example setting the default value** (236585):
**Example setting the default value** (1022525):
```
[State.Batch.Constraints]
MaxMemAligns=236585
MaxMemAligns=1022525
```

##### <a name="State_Batch_Constraints_MaxArithmetics"></a>20.9.1.8. `State.Batch.Constraints.MaxArithmetics`

**Type:** : `integer`

**Default:** `236585`
**Default:** `1022525`

**Example setting the default value** (236585):
**Example setting the default value** (1022525):
```
[State.Batch.Constraints]
MaxArithmetics=236585
MaxArithmetics=1022525
```

##### <a name="State_Batch_Constraints_MaxBinaries"></a>20.9.1.9. `State.Batch.Constraints.MaxBinaries`

**Type:** : `integer`

**Default:** `473170`
**Default:** `2045051`

**Example setting the default value** (473170):
**Example setting the default value** (2045051):
```
[State.Batch.Constraints]
MaxBinaries=473170
MaxBinaries=2045051
```

##### <a name="State_Batch_Constraints_MaxSteps"></a>20.9.1.10. `State.Batch.Constraints.MaxSteps`

**Type:** : `integer`

**Default:** `7570538`
**Default:** `32720619`

**Example setting the default value** (7570538):
**Example setting the default value** (32720619):
```
[State.Batch.Constraints]
MaxSteps=7570538
MaxSteps=32720619
```

##### <a name="State_Batch_Constraints_MaxSHA256Hashes"></a>20.9.1.11. `State.Batch.Constraints.MaxSHA256Hashes`

**Type:** : `integer`

**Default:** `1596`
**Default:** `7269`

**Example setting the default value** (1596):
**Example setting the default value** (7269):
```
[State.Batch.Constraints]
MaxSHA256Hashes=1596
MaxSHA256Hashes=7269
```

### <a name="State_MaxLogsCount"></a>20.10. `State.MaxLogsCount`
Expand Down
16 changes: 8 additions & 8 deletions docs/config-file/node-config-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -1696,35 +1696,35 @@
},
"MaxKeccakHashes": {
"type": "integer",
"default": 2145
"default": 9268
},
"MaxPoseidonHashes": {
"type": "integer",
"default": 252357
"default": 1090693
},
"MaxPoseidonPaddings": {
"type": "integer",
"default": 135191
"default": 584300
},
"MaxMemAligns": {
"type": "integer",
"default": 236585
"default": 1022525
},
"MaxArithmetics": {
"type": "integer",
"default": 236585
"default": 1022525
},
"MaxBinaries": {
"type": "integer",
"default": 473170
"default": 2045051
},
"MaxSteps": {
"type": "integer",
"default": 7570538
"default": 32720619
},
"MaxSHA256Hashes": {
"type": "integer",
"default": 1596
"default": 7269
}
},
"additionalProperties": false,
Expand Down
11 changes: 7 additions & 4 deletions test/contracts/auto/triggerErrors.sol
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,21 @@ contract triggerErrors {
// bytesKeccak = 1000000 & gasLimit = 50000
function outOfCountersKeccaks() pure public returns (bytes32 test) {
assembly {
test := keccak256(0, 1000000)
test := keccak256(0, 2000000)
}
return test;
}

// set number and gas limit
// gasLimit = 50000 & iterations = 100000
function outOfCountersSteps() pure public {
for (uint i = 0; i < 100000; i++) {
// gasLimit = 30000000 & iterations = 100000
function outOfCountersSteps() public {
for (uint i = 0; i < 200000; i++) {
assembly {
mstore(0x0, 1234)
}
}
assembly {
sstore(0x0, 1)
}
}
}
54 changes: 23 additions & 31 deletions test/contracts/bin/triggerErrors/triggerErrors.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 7 additions & 2 deletions test/e2e/jsonrpc1_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -588,10 +588,15 @@ func Test_OOCErrors(t *testing.T) {
{
name: "call OOC steps",
execute: func(t *testing.T, ctx context.Context, sc *triggerErrors.TriggerErrors, c *ethclient.Client, a bind.TransactOpts) string {
err := sc.OutOfCountersSteps(nil)
a.GasLimit = 30000000
a.NoSend = true
tx, err := sc.OutOfCountersSteps(&a)
require.NoError(t, err)

err = c.SendTransaction(ctx, tx)
return err.Error()
},
expectedError: "failed to execute the unsigned transaction: main execution exceeded the maximum number of steps",
expectedError: "failed to add tx to the pool: not enough step counters to continue the execution",
},
{
name: "call OOC keccaks",
Expand Down

0 comments on commit 9573bec

Please sign in to comment.