fix tests
This commit is contained in:
parent
d72ae6b9f2
commit
9b2eba22b7
|
@ -61,6 +61,10 @@ OK: 4/4 Fail: 0/4 Skip: 0/4
|
|||
+ sanity check Electra blocks [Preset: mainnet] OK
|
||||
+ sanity check Electra states [Preset: mainnet] OK
|
||||
+ sanity check Electra states, reusing buffers [Preset: mainnet] OK
|
||||
+ sanity check Fulu and cross-fork getState rollback [Preset: mainnet] OK
|
||||
+ sanity check Fulu blocks [Preset: mainnet] OK
|
||||
+ sanity check Fulu states [Preset: mainnet] OK
|
||||
+ sanity check Fulu states, reusing buffers [Preset: mainnet] OK
|
||||
+ sanity check blobs [Preset: mainnet] OK
|
||||
+ sanity check genesis roundtrip [Preset: mainnet] OK
|
||||
+ sanity check phase 0 blocks [Preset: mainnet] OK
|
||||
|
@ -69,7 +73,7 @@ OK: 4/4 Fail: 0/4 Skip: 0/4
|
|||
+ sanity check phase 0 states, reusing buffers [Preset: mainnet] OK
|
||||
+ sanity check state diff roundtrip [Preset: mainnet] OK
|
||||
```
|
||||
OK: 29/29 Fail: 0/29 Skip: 0/29
|
||||
OK: 33/33 Fail: 0/33 Skip: 0/33
|
||||
## Beacon chain file test suite
|
||||
```diff
|
||||
+ Auto check/repair test (missing data) OK
|
||||
|
@ -107,8 +111,9 @@ OK: 1/1 Fail: 0/1 Skip: 0/1
|
|||
+ Capella toSignedBlindedBeaconBlock OK
|
||||
+ Deneb toSignedBlindedBeaconBlock OK
|
||||
+ Electra toSignedBlindedBeaconBlock OK
|
||||
+ Fulu toSignedBlindedBeaconBlock OK
|
||||
```
|
||||
OK: 4/4 Fail: 0/4 Skip: 0/4
|
||||
OK: 5/5 Fail: 0/5 Skip: 0/5
|
||||
## Block pool altair processing [Preset: mainnet]
|
||||
```diff
|
||||
+ Invalid signatures [Preset: mainnet] OK
|
||||
|
@ -1137,4 +1142,4 @@ OK: 2/2 Fail: 0/2 Skip: 0/2
|
|||
OK: 9/9 Fail: 0/9 Skip: 0/9
|
||||
|
||||
---TOTAL---
|
||||
OK: 770/775 Fail: 0/775 Skip: 5/775
|
||||
OK: 775/780 Fail: 0/780 Skip: 5/780
|
||||
|
|
|
@ -630,6 +630,31 @@ template Forky*(
|
|||
kind: static ConsensusFork): auto =
|
||||
kind.SignedBeaconBlock
|
||||
|
||||
# Workaround method used for tests that involve walking through
|
||||
# `nim-eth2-scnarios`fork dirs, to be removed once Fulu is
|
||||
# included in new release.
|
||||
template withAllButFulu*(
|
||||
x: typedesc[ConsensusFork], body: untyped): untyped =
|
||||
static: doAssert ConsensusFork.high == ConsensusFork.Fulu
|
||||
block:
|
||||
const consensusFork {.inject, used.} = ConsensusFork.Electra
|
||||
body
|
||||
block:
|
||||
const consensusFork {.inject, used.} = ConsensusFork.Deneb
|
||||
body
|
||||
block:
|
||||
const consensusFork {.inject, used.} = ConsensusFork.Capella
|
||||
body
|
||||
block:
|
||||
const consensusFork {.inject, used.} = ConsensusFork.Bellatrix
|
||||
body
|
||||
block:
|
||||
const consensusFork {.inject, used.} = ConsensusFork.Altair
|
||||
body
|
||||
block:
|
||||
const consensusFork {.inject, used.} = ConsensusFork.Phase0
|
||||
body
|
||||
|
||||
template withAll*(
|
||||
x: typedesc[ConsensusFork], body: untyped): untyped =
|
||||
static: doAssert ConsensusFork.high == ConsensusFork.Fulu
|
||||
|
|
|
@ -99,5 +99,5 @@ template runForkBlockTests(consensusFork: static ConsensusFork) =
|
|||
"EF - " & forkHumanName & " - Random",
|
||||
RandomDir, suiteName, path)
|
||||
|
||||
withAll(ConsensusFork):
|
||||
withAllButFulu(ConsensusFork):
|
||||
runForkBlockTests(consensusFork)
|
|
@ -155,6 +155,4 @@ suite "Blinded block conversions":
|
|||
deneb_steps
|
||||
when consensusFork >= ConsensusFork.Electra:
|
||||
electra_steps
|
||||
when consensusFork >= ConsensusFork.Fulu:
|
||||
fulu_steps
|
||||
static: doAssert high(ConsensusFork) == ConsensusFork.Fulu
|
||||
|
|
Loading…
Reference in New Issue