mirror of
https://github.com/status-im/nimbus-eth1.git
synced 2025-01-24 19:19:21 +00:00
fixes test codes
This commit is contained in:
parent
ab314c1e04
commit
8f7e45fa08
@ -125,6 +125,9 @@ func skipBCTests*(folder: string, name: string): bool =
|
||||
]
|
||||
|
||||
func skipNewBCTests*(folder: string, name: string): bool =
|
||||
if folder == "vmPerformance":
|
||||
return true
|
||||
|
||||
# the new BC tests also contains these slow tests
|
||||
# for Istanbul fork
|
||||
if slowGSTTests(folder, name):
|
||||
|
@ -249,8 +249,11 @@ func vmConfiguration(network: string, c: var ChainConfig): VMConfig =
|
||||
of "Istanbul":
|
||||
result = [(0, FkIstanbul), (0, FkIstanbul)]
|
||||
c.istanbulBlock = 0.toBlockNumber
|
||||
of "Berlin":
|
||||
result = [(0, FkBerlin), (0, FkBerlin)]
|
||||
c.berlinBlock = 0.toBlockNumber
|
||||
else:
|
||||
raise newException(ValueError, "unsupported network")
|
||||
raise newException(ValueError, "unsupported network " & network)
|
||||
|
||||
func vmConfigToFork(vmConfig: VMConfig, blockNumber: Uint256): Fork =
|
||||
if blockNumber >= vmConfig[1].blockNumber.u256: return vmConfig[1].fork
|
||||
|
@ -73,7 +73,7 @@ proc testFixture(fixtures: JsonNode, testStatusIMPL: var TestStatus) =
|
||||
of "sha256" : data.doTest(fork, paSha256)
|
||||
of "ripemd" : data.doTest(fork, paRipeMd160)
|
||||
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 "bn256mul" : data.doTest(fork, paEcMul)
|
||||
of "ecpairing": data.doTest(fork, paPairing)
|
||||
|
Loading…
x
Reference in New Issue
Block a user