Skip to content

Commit e5526cc

Browse files
update limits for blockhash, blockdata and blake prc (#133)
Signed-off-by: F Bojarski <[email protected]> Co-authored-by: Fabio Di Fabio <[email protected]>
1 parent 0a0ef9f commit e5526cc

File tree

6 files changed

+22
-22
lines changed

6 files changed

+22
-22
lines changed

acceptance-tests/src/test/resources/moduleLimits.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
ADD = 524288
1313
BIN = 262144
1414
BLAKE_MODEXP_DATA = 16384
15-
BLOCK_DATA = 1024
16-
BLOCK_HASH = 512
15+
BLOCK_DATA = 4096
16+
BLOCK_HASH = 2048
1717
EC_DATA = 262144
1818
EUC = 65536
1919
EXP = 8192
@@ -56,8 +56,8 @@ PRECOMPILE_ECMUL_EFFECTIVE_CALLS = 32
5656
PRECOMPILE_ECPAIRING_FINAL_EXPONENTIATIONS = 16
5757
PRECOMPILE_ECPAIRING_G2_MEMBERSHIP_CALLS = 64
5858
PRECOMPILE_ECPAIRING_MILLER_LOOPS = 64
59-
PRECOMPILE_BLAKE_EFFECTIVE_CALLS = 600
60-
PRECOMPILE_BLAKE_ROUNDS = 600 # it is possible to call BLAKE2f with r = 0; this is a nontrivial operation ...
59+
PRECOMPILE_BLAKE_EFFECTIVE_CALLS = 0 # there are no gnarks circuit atm
60+
PRECOMPILE_BLAKE_ROUNDS = 0 # it is possible to call BLAKE2f with r = 0; this is a nontrivial operation ...
6161
# # Notes:
6262
# - there are no IDENTITY related limits
6363
# - we used to have the following limits

acceptance-tests/src/test/resources/moduleLimits_sendRawTx.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
ADD = 70
1414
BIN = 262144
1515
BLAKE_MODEXP_DATA = 262144
16-
BLOCK_DATA = 13
17-
BLOCK_HASH = 1
16+
BLOCK_DATA = 13
17+
BLOCK_HASH = 1
1818
EC_DATA = 4096
1919
EUC = 16384 # can probably be lower
2020
EXP = 32760
@@ -71,5 +71,5 @@ PRECOMPILE_ECMUL_EFFECTIVE_CALLS = 10000
7171
PRECOMPILE_ECPAIRING_FINAL_EXPONENTIATIONS = 10000
7272
PRECOMPILE_ECPAIRING_G2_MEMBERSHIP_CALLS = 10000
7373
PRECOMPILE_ECPAIRING_MILLER_LOOPS = 10000
74-
PRECOMPILE_BLAKE_EFFECTIVE_CALLS = 10000
75-
PRECOMPILE_BLAKE_ROUNDS = 512
74+
PRECOMPILE_BLAKE_EFFECTIVE_CALLS = 0 # there are no gnarks circuit atm
75+
PRECOMPILE_BLAKE_ROUNDS = 0

acceptance-tests/src/test/resources/noModuleLimits.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ ADD = 262144
1313
BIN = 262144
1414
BIN_RT = 262144
1515
BLAKE_MODEXP_DATA = 262144
16-
BLOCK_DATA = 13
17-
BLOCK_HASH = 1
16+
BLOCK_DATA = 13
17+
BLOCK_HASH = 1
1818
EC_DATA = 4096
1919
EUC = 16384 # can probably be lower
2020
EXP = 32760
@@ -70,5 +70,5 @@ PRECOMPILE_ECMUL_EFFECTIVE_CALLS = 10000
7070
PRECOMPILE_ECPAIRING_FINAL_EXPONENTIATIONS = 10000
7171
PRECOMPILE_ECPAIRING_G2_MEMBERSHIP_CALLS = 10000
7272
PRECOMPILE_ECPAIRING_MILLER_LOOPS = 10000
73-
PRECOMPILE_BLAKE_EFFECTIVE_CALLS = 10000
74-
PRECOMPILE_BLAKE_ROUNDS = 512
73+
PRECOMPILE_BLAKE_EFFECTIVE_CALLS = 0
74+
PRECOMPILE_BLAKE_ROUNDS = 0

acceptance-tests/src/test/resources/strictModuleLimits.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,5 +72,5 @@ PRECOMPILE_ECMUL_EFFECTIVE_CALLS = 10000
7272
PRECOMPILE_ECPAIRING_FINAL_EXPONENTIATIONS = 10000
7373
PRECOMPILE_ECPAIRING_G2_MEMBERSHIP_CALLS = 10000
7474
PRECOMPILE_ECPAIRING_MILLER_LOOPS = 10000
75-
PRECOMPILE_BLAKE_EFFECTIVE_CALLS = 10000
76-
PRECOMPILE_BLAKE_ROUNDS = 512
75+
PRECOMPILE_BLAKE_EFFECTIVE_CALLS = 0
76+
PRECOMPILE_BLAKE_ROUNDS = 0

acceptance-tests/src/test/resources/txOverflowModuleLimits.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
ADD = 70
1414
BIN = 262144
1515
BLAKE_MODEXP_DATA = 262144
16-
BLOCK_DATA = 13
17-
BLOCK_HASH = 1
16+
BLOCK_DATA = 13
17+
BLOCK_HASH = 1
1818
EC_DATA = 4096
1919
EUC = 16384 # can probably be lower
2020
EXP = 32760
@@ -71,5 +71,5 @@ PRECOMPILE_ECMUL_EFFECTIVE_CALLS = 10000
7171
PRECOMPILE_ECPAIRING_FINAL_EXPONENTIATIONS = 10000
7272
PRECOMPILE_ECPAIRING_G2_MEMBERSHIP_CALLS = 10000
7373
PRECOMPILE_ECPAIRING_MILLER_LOOPS = 10000
74-
PRECOMPILE_BLAKE_EFFECTIVE_CALLS = 10000
75-
PRECOMPILE_BLAKE_ROUNDS = 512
74+
PRECOMPILE_BLAKE_EFFECTIVE_CALLS = 0
75+
PRECOMPILE_BLAKE_ROUNDS = 0

sequencer/src/test/resources/sequencer/line-limits.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
ADD = 524288
1313
BIN = 262144
1414
BLAKE_MODEXP_DATA = 16384
15-
BLOCK_DATA = 1024
16-
BLOCK_HASH = 512
15+
BLOCK_DATA = 4096
16+
BLOCK_HASH = 2048
1717
EC_DATA = 262144
1818
EUC = 65536
1919
EXP = 8192
@@ -75,8 +75,8 @@ PRECOMPILE_ECMUL_EFFECTIVE_CALLS = 32
7575
PRECOMPILE_ECPAIRING_FINAL_EXPONENTIATIONS = 16
7676
PRECOMPILE_ECPAIRING_G2_MEMBERSHIP_CALLS = 64
7777
PRECOMPILE_ECPAIRING_MILLER_LOOPS = 64
78-
PRECOMPILE_BLAKE_EFFECTIVE_CALLS = 600
79-
PRECOMPILE_BLAKE_ROUNDS = 600 # it is possible to call BLAKE2f with r = 0; this is a nontrivial operation ...
78+
PRECOMPILE_BLAKE_EFFECTIVE_CALLS = 0 # there are no gnarks circuit atm
79+
PRECOMPILE_BLAKE_ROUNDS = 0 # it is possible to call BLAKE2f with r = 0; this is a nontrivial operation ...
8080
# # Notes:
8181
# - there are no IDENTITY related limits
8282
# - we used to have the following limits

0 commit comments

Comments
 (0)