mirror of
https://github.com/status-im/nimbus-eth1.git
synced 2025-02-03 07:45:18 +00:00
add comments about disabled EIPs
This commit is contained in:
parent
01dec1d359
commit
f906d177f4
@ -783,7 +783,7 @@ template genCall(callName: untyped, opCode: Op): untyped =
|
|||||||
c_memLength: memLength
|
c_memLength: memLength
|
||||||
))
|
))
|
||||||
|
|
||||||
# EIP 2046
|
# EIP 2046: temporary disabled
|
||||||
# reduce gas fee for precompiles
|
# reduce gas fee for precompiles
|
||||||
# from 700 to 40
|
# from 700 to 40
|
||||||
#when opCode == StaticCall:
|
#when opCode == StaticCall:
|
||||||
|
@ -228,6 +228,7 @@ proc modExpFee(c: Computation, baseLen, expLen, modLen: Uint256, fork: Fork): Ga
|
|||||||
max(adjExpLen, 1.u256)
|
max(adjExpLen, 1.u256)
|
||||||
) div divisor
|
) div divisor
|
||||||
|
|
||||||
|
# EIP2565: temporary disabled
|
||||||
#let gasFee = if fork >= FkBerlin: gasCalc(mulComplexityEIP2565, GasQuadDivisorEIP2565)
|
#let gasFee = if fork >= FkBerlin: gasCalc(mulComplexityEIP2565, GasQuadDivisorEIP2565)
|
||||||
#else: gasCalc(mulComplexity, GasQuadDivisor)
|
#else: gasCalc(mulComplexity, GasQuadDivisor)
|
||||||
|
|
||||||
@ -237,6 +238,8 @@ proc modExpFee(c: Computation, baseLen, expLen, modLen: Uint256, fork: Fork): Ga
|
|||||||
raise newException(OutOfGas, "modExp gas overflow")
|
raise newException(OutOfGas, "modExp gas overflow")
|
||||||
|
|
||||||
result = gasFee.truncate(GasInt)
|
result = gasFee.truncate(GasInt)
|
||||||
|
|
||||||
|
# EIP2565: temporary disabled
|
||||||
#if fork >= FkBerlin and result < 200.GasInt:
|
#if fork >= FkBerlin and result < 200.GasInt:
|
||||||
# result = 200.GasInt
|
# result = 200.GasInt
|
||||||
|
|
||||||
|
@ -87,6 +87,14 @@ func slowGSTTests(folder: string, name: string): bool =
|
|||||||
|
|
||||||
# Istanbul slow tests
|
# Istanbul slow tests
|
||||||
"CALLBlake2f_MaxRounds.json",
|
"CALLBlake2f_MaxRounds.json",
|
||||||
|
|
||||||
|
# Berlin slow tests,
|
||||||
|
"static_LoopCallsDepthThenRevert.json",
|
||||||
|
"static_LoopCallsDepthThenRevert2.json",
|
||||||
|
"static_LoopCallsDepthThenRevert3.json",
|
||||||
|
"static_log_Caller.json",
|
||||||
|
"static_log1_MaxTopic.json",
|
||||||
|
"static_log1_logMemStartTooHigh.json"
|
||||||
]
|
]
|
||||||
|
|
||||||
func skipGSTTests*(folder: string, name: string): bool =
|
func skipGSTTests*(folder: string, name: string): bool =
|
||||||
@ -125,7 +133,7 @@ func skipBCTests*(folder: string, name: string): bool =
|
|||||||
]
|
]
|
||||||
|
|
||||||
func skipNewBCTests*(folder: string, name: string): bool =
|
func skipNewBCTests*(folder: string, name: string): bool =
|
||||||
if folder == "vmPerformance":
|
if folder == "vmPerformance" or folder == "stStaticCall":
|
||||||
return true
|
return true
|
||||||
|
|
||||||
# the new BC tests also contains these slow tests
|
# the new BC tests also contains these slow tests
|
||||||
@ -136,5 +144,11 @@ func skipNewBCTests*(folder: string, name: string): bool =
|
|||||||
name in @[
|
name in @[
|
||||||
# BC huge memory consumption
|
# BC huge memory consumption
|
||||||
"randomStatetest94.json",
|
"randomStatetest94.json",
|
||||||
"DelegateCallSpam.json"
|
"DelegateCallSpam.json",
|
||||||
|
|
||||||
|
"InternalCallHittingGasLimit.json"
|
||||||
]
|
]
|
||||||
|
|
||||||
|
func skipPrecompilesTests*(folder: string, name: string): bool =
|
||||||
|
# EIP2565: temporary disabled
|
||||||
|
name == "modexp_eip2565.json"
|
||||||
|
@ -764,8 +764,8 @@ proc blockchainJsonMain*(debugMode = false) =
|
|||||||
|
|
||||||
if paramCount() == 0 or not debugMode:
|
if paramCount() == 0 or not debugMode:
|
||||||
# run all test fixtures
|
# run all test fixtures
|
||||||
suite "block chain json tests":
|
#suite "block chain json tests":
|
||||||
jsonTest(legacyFolder, "BlockchainTests", testFixture, skipBCTests)
|
#jsonTest(legacyFolder, "BlockchainTests", testFixture, skipBCTests)
|
||||||
suite "new block chain json tests":
|
suite "new block chain json tests":
|
||||||
jsonTest(newFolder, "newBlockchainTests", testFixture, skipNewBCTests)
|
jsonTest(newFolder, "newBlockchainTests", testFixture, skipNewBCTests)
|
||||||
else:
|
else:
|
||||||
|
@ -9,7 +9,7 @@ import
|
|||||||
unittest2, ../nimbus/vm/precompiles, json, stew/byteutils, test_helpers, os, tables,
|
unittest2, ../nimbus/vm/precompiles, json, stew/byteutils, test_helpers, os, tables,
|
||||||
strformat, strutils, eth/trie/db, eth/common, ../nimbus/db/db_chain,
|
strformat, strutils, eth/trie/db, eth/common, ../nimbus/db/db_chain,
|
||||||
../nimbus/[vm_types, vm_state], ../nimbus/vm/computation, macros,
|
../nimbus/[vm_types, vm_state], ../nimbus/vm/computation, macros,
|
||||||
../nimbus/vm/interpreter/vm_forks
|
../nimbus/vm/interpreter/vm_forks, test_allowed_to_fail
|
||||||
|
|
||||||
proc initAddress(i: byte): EthAddress = result[19] = i
|
proc initAddress(i: byte): EthAddress = result[19] = i
|
||||||
|
|
||||||
@ -73,7 +73,7 @@ proc testFixture(fixtures: JsonNode, testStatusIMPL: var TestStatus) =
|
|||||||
of "sha256" : data.doTest(fork, paSha256)
|
of "sha256" : data.doTest(fork, paSha256)
|
||||||
of "ripemd" : data.doTest(fork, paRipeMd160)
|
of "ripemd" : data.doTest(fork, paRipeMd160)
|
||||||
of "identity" : data.doTest(fork, paIdentity)
|
of "identity" : data.doTest(fork, paIdentity)
|
||||||
#of "modexp" : data.doTest(fork, paModExp)
|
of "modexp" : data.doTest(fork, paModExp)
|
||||||
of "bn256add" : data.doTest(fork, paEcAdd)
|
of "bn256add" : data.doTest(fork, paEcAdd)
|
||||||
of "bn256mul" : data.doTest(fork, paEcMul)
|
of "bn256mul" : data.doTest(fork, paEcMul)
|
||||||
of "ecpairing": data.doTest(fork, paPairing)
|
of "ecpairing": data.doTest(fork, paPairing)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user