use v5.3.0 slashing interchange test vectors (#5640)

This commit is contained in:
tersec 2023-12-04 11:55:56 +00:00 committed by GitHub
parent 144d453f4a
commit 0e5c44b529
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 5 deletions

View File

@ -8,10 +8,8 @@
{.used.}
import
# Standard library
std/os,
# Status lib
stew/[results, byteutils],
stew/results,
chronicles,
# Internal
../../beacon_chain/validators/[slashing_protection, slashing_protection_v2],
@ -20,6 +18,9 @@ import
../testutil, ../testdbutil,
../consensus_spec/fixtures_utils
from std/os import changeFileExt, removeFile, walkDir, `/`
from stew/byteutils import toHex
type
TestInterchange = object
name: string
@ -55,6 +56,7 @@ type
slot: SlotString
signing_root: Eth2Digest0x
should_succeed: bool
should_succeed_complete: bool
CandidateVote = object
pubkey: PubKey0x
@ -62,6 +64,7 @@ type
target_epoch: EpochString
signing_root: Eth2Digest0x
should_succeed: bool
should_succeed_complete: bool
func toHexLogs(v: CandidateBlock): auto =
(
@ -87,7 +90,7 @@ proc sqlite3db_delete(basepath, dbname: string) =
removeFile(basepath / dbname&".sqlite3-wal")
removeFile(basepath / dbname&".sqlite3")
const InterchangeTestsDir = FixturesDir / "tests-slashing-v5.2.1" / "tests" / "generated"
const InterchangeTestsDir = FixturesDir / "tests-slashing-v5.3.0" / "tests" / "generated"
const TestDir = ""
const TestDbPrefix = "test_slashprot_"

@ -1 +1 @@
Subproject commit ab0555be9a872b018e8d2ab455997e25f8d0dd5d
Subproject commit b2ec62f3965827abefb7d726985dc4d6995353c0