Skip to content

Commit

Permalink
compatibility with latest LC test format
Browse files Browse the repository at this point in the history
`state.ssz_snappy` file was renamed to `object.ssz_snappy` and
`pyspec_tests` folder was renamed to `BeaconState` as part of
ethereum/consensus-specs#3066
  • Loading branch information
etan-status committed Nov 18, 2022
1 parent 7db6a95 commit ab7f2a3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ proc runTest(path: string, fork: BeaconStateFork) =
yaml.load(s, res)
res

state = loadForkedState(path/"state.ssz_snappy", fork)
state = loadForkedState(path/"object.ssz_snappy", fork)

withState(state[]):
var computedProof = newSeq[Eth2Digest](log2trunc(proof.leaf_index))
Expand All @@ -65,6 +65,6 @@ suite "EF - Light client - Single merkle proof" & preset():
let
fork = forkForPathComponent(path).valueOr:
raiseAssert "Unknown test fork: " & testsPath
basePath = testsPath/"pyspec_tests"
basePath = testsPath/"BeaconState"
for kind, path in walkDir(basePath, relative = true, checkDir = true):
runTest(basePath/path, fork)

0 comments on commit ab7f2a3

Please sign in to comment.