explicitly refer to attestation fork in SSZ consensus object tests (#6399)
Use fully qualified types when referring to attestation related types in tests. We should also consider to merge these to a single runner.
This commit is contained in:
parent
12a7ed8c29
commit
1fd246b23e
|
@ -173,4 +173,4 @@ suite baseDescription & "Voluntary Exit " & preset():
|
||||||
for path in walkTests(OpVoluntaryExitDir):
|
for path in walkTests(OpVoluntaryExitDir):
|
||||||
runTest[SignedVoluntaryExit, typeof applyVoluntaryExit](
|
runTest[SignedVoluntaryExit, typeof applyVoluntaryExit](
|
||||||
OpVoluntaryExitDir, suiteName, "Voluntary Exit", "voluntary_exit",
|
OpVoluntaryExitDir, suiteName, "Voluntary Exit", "voluntary_exit",
|
||||||
applyVoluntaryExit, path)
|
applyVoluntaryExit, path)
|
||||||
|
|
|
@ -108,10 +108,10 @@ suite "EF - Altair - SSZ consensus objects " & preset():
|
||||||
let hash = loadExpectedHashTreeRoot(path)
|
let hash = loadExpectedHashTreeRoot(path)
|
||||||
|
|
||||||
case sszType:
|
case sszType:
|
||||||
of "AggregateAndProof": checkSSZ(AggregateAndProof, path, hash)
|
of "AggregateAndProof": checkSSZ(phase0.AggregateAndProof, path, hash)
|
||||||
of "Attestation": checkSSZ(Attestation, path, hash)
|
of "Attestation": checkSSZ(phase0.Attestation, path, hash)
|
||||||
of "AttestationData": checkSSZ(AttestationData, path, hash)
|
of "AttestationData": checkSSZ(AttestationData, path, hash)
|
||||||
of "AttesterSlashing": checkSSZ(AttesterSlashing, path, hash)
|
of "AttesterSlashing": checkSSZ(phase0.AttesterSlashing, path, hash)
|
||||||
of "BeaconBlock": checkSSZ(altair.BeaconBlock, path, hash)
|
of "BeaconBlock": checkSSZ(altair.BeaconBlock, path, hash)
|
||||||
of "BeaconBlockBody": checkSSZ(altair.BeaconBlockBody, path, hash)
|
of "BeaconBlockBody": checkSSZ(altair.BeaconBlockBody, path, hash)
|
||||||
of "BeaconBlockHeader": checkSSZ(BeaconBlockHeader, path, hash)
|
of "BeaconBlockHeader": checkSSZ(BeaconBlockHeader, path, hash)
|
||||||
|
@ -126,7 +126,8 @@ suite "EF - Altair - SSZ consensus objects " & preset():
|
||||||
of "Fork": checkSSZ(Fork, path, hash)
|
of "Fork": checkSSZ(Fork, path, hash)
|
||||||
of "ForkData": checkSSZ(ForkData, path, hash)
|
of "ForkData": checkSSZ(ForkData, path, hash)
|
||||||
of "HistoricalBatch": checkSSZ(HistoricalBatch, path, hash)
|
of "HistoricalBatch": checkSSZ(HistoricalBatch, path, hash)
|
||||||
of "IndexedAttestation": checkSSZ(IndexedAttestation, path, hash)
|
of "IndexedAttestation":
|
||||||
|
checkSSZ(phase0.IndexedAttestation, path, hash)
|
||||||
of "LightClientBootstrap":
|
of "LightClientBootstrap":
|
||||||
checkSSZ(altair.LightClientBootstrap, path, hash)
|
checkSSZ(altair.LightClientBootstrap, path, hash)
|
||||||
of "LightClientHeader":
|
of "LightClientHeader":
|
||||||
|
@ -140,7 +141,7 @@ suite "EF - Altair - SSZ consensus objects " & preset():
|
||||||
of "PendingAttestation": checkSSZ(PendingAttestation, path, hash)
|
of "PendingAttestation": checkSSZ(PendingAttestation, path, hash)
|
||||||
of "ProposerSlashing": checkSSZ(ProposerSlashing, path, hash)
|
of "ProposerSlashing": checkSSZ(ProposerSlashing, path, hash)
|
||||||
of "SignedAggregateAndProof":
|
of "SignedAggregateAndProof":
|
||||||
checkSSZ(SignedAggregateAndProof, path, hash)
|
checkSSZ(phase0.SignedAggregateAndProof, path, hash)
|
||||||
of "SignedBeaconBlock": checkSSZ(altair.SignedBeaconBlock, path, hash)
|
of "SignedBeaconBlock": checkSSZ(altair.SignedBeaconBlock, path, hash)
|
||||||
of "SignedBeaconBlockHeader":
|
of "SignedBeaconBlockHeader":
|
||||||
checkSSZ(SignedBeaconBlockHeader, path, hash)
|
checkSSZ(SignedBeaconBlockHeader, path, hash)
|
||||||
|
|
|
@ -75,7 +75,7 @@ proc runTest[T, U](
|
||||||
|
|
||||||
suite baseDescription & "Attestation " & preset():
|
suite baseDescription & "Attestation " & preset():
|
||||||
proc applyAttestation(
|
proc applyAttestation(
|
||||||
preState: var bellatrix.BeaconState, attestation: Attestation):
|
preState: var bellatrix.BeaconState, attestation: phase0.Attestation):
|
||||||
Result[void, cstring] =
|
Result[void, cstring] =
|
||||||
var cache: StateCache
|
var cache: StateCache
|
||||||
let
|
let
|
||||||
|
@ -90,7 +90,7 @@ suite baseDescription & "Attestation " & preset():
|
||||||
ok()
|
ok()
|
||||||
|
|
||||||
for path in walkTests(OpAttestationsDir):
|
for path in walkTests(OpAttestationsDir):
|
||||||
runTest[Attestation, typeof applyAttestation](
|
runTest[phase0.Attestation, typeof applyAttestation](
|
||||||
OpAttestationsDir, suiteName, "Attestation", "attestation",
|
OpAttestationsDir, suiteName, "Attestation", "attestation",
|
||||||
applyAttestation, path)
|
applyAttestation, path)
|
||||||
|
|
||||||
|
@ -198,4 +198,4 @@ suite baseDescription & "Voluntary Exit " & preset():
|
||||||
for path in walkTests(OpVoluntaryExitDir):
|
for path in walkTests(OpVoluntaryExitDir):
|
||||||
runTest[SignedVoluntaryExit, typeof applyVoluntaryExit](
|
runTest[SignedVoluntaryExit, typeof applyVoluntaryExit](
|
||||||
OpVoluntaryExitDir, suiteName, "Voluntary Exit", "voluntary_exit",
|
OpVoluntaryExitDir, suiteName, "Voluntary Exit", "voluntary_exit",
|
||||||
applyVoluntaryExit, path)
|
applyVoluntaryExit, path)
|
||||||
|
|
|
@ -108,8 +108,8 @@ suite "EF - Bellatrix - SSZ consensus objects " & preset():
|
||||||
let hash = loadExpectedHashTreeRoot(path)
|
let hash = loadExpectedHashTreeRoot(path)
|
||||||
|
|
||||||
case sszType:
|
case sszType:
|
||||||
of "AggregateAndProof": checkSSZ(AggregateAndProof, path, hash)
|
of "AggregateAndProof": checkSSZ(phase0.AggregateAndProof, path, hash)
|
||||||
of "Attestation": checkSSZ(Attestation, path, hash)
|
of "Attestation": checkSSZ(phase0.Attestation, path, hash)
|
||||||
of "AttestationData": checkSSZ(AttestationData, path, hash)
|
of "AttestationData": checkSSZ(AttestationData, path, hash)
|
||||||
of "AttesterSlashing": checkSSZ(phase0.AttesterSlashing, path, hash)
|
of "AttesterSlashing": checkSSZ(phase0.AttesterSlashing, path, hash)
|
||||||
of "BeaconBlock": checkSSZ(bellatrix.BeaconBlock, path, hash)
|
of "BeaconBlock": checkSSZ(bellatrix.BeaconBlock, path, hash)
|
||||||
|
@ -123,9 +123,10 @@ suite "EF - Bellatrix - SSZ consensus objects " & preset():
|
||||||
of "DepositMessage": checkSSZ(DepositMessage, path, hash)
|
of "DepositMessage": checkSSZ(DepositMessage, path, hash)
|
||||||
of "Eth1Block": checkSSZ(Eth1Block, path, hash)
|
of "Eth1Block": checkSSZ(Eth1Block, path, hash)
|
||||||
of "Eth1Data": checkSSZ(Eth1Data, path, hash)
|
of "Eth1Data": checkSSZ(Eth1Data, path, hash)
|
||||||
of "ExecutionPayload": checkSSZ(ExecutionPayload, path, hash)
|
of "ExecutionPayload":
|
||||||
|
checkSSZ(bellatrix.ExecutionPayload, path, hash)
|
||||||
of "ExecutionPayloadHeader":
|
of "ExecutionPayloadHeader":
|
||||||
checkSSZ(ExecutionPayloadHeader, path, hash)
|
checkSSZ(bellatrix.ExecutionPayloadHeader, path, hash)
|
||||||
of "Fork": checkSSZ(Fork, path, hash)
|
of "Fork": checkSSZ(Fork, path, hash)
|
||||||
of "ForkData": checkSSZ(ForkData, path, hash)
|
of "ForkData": checkSSZ(ForkData, path, hash)
|
||||||
of "HistoricalBatch": checkSSZ(HistoricalBatch, path, hash)
|
of "HistoricalBatch": checkSSZ(HistoricalBatch, path, hash)
|
||||||
|
@ -145,7 +146,7 @@ suite "EF - Bellatrix - SSZ consensus objects " & preset():
|
||||||
of "PowBlock": checkSSZ(PowBlock, path, hash)
|
of "PowBlock": checkSSZ(PowBlock, path, hash)
|
||||||
of "ProposerSlashing": checkSSZ(ProposerSlashing, path, hash)
|
of "ProposerSlashing": checkSSZ(ProposerSlashing, path, hash)
|
||||||
of "SignedAggregateAndProof":
|
of "SignedAggregateAndProof":
|
||||||
checkSSZ(SignedAggregateAndProof, path, hash)
|
checkSSZ(phase0.SignedAggregateAndProof, path, hash)
|
||||||
of "SignedBeaconBlock":
|
of "SignedBeaconBlock":
|
||||||
checkSSZ(bellatrix.SignedBeaconBlock, path, hash)
|
checkSSZ(bellatrix.SignedBeaconBlock, path, hash)
|
||||||
of "SignedBeaconBlockHeader":
|
of "SignedBeaconBlockHeader":
|
||||||
|
@ -164,4 +165,4 @@ suite "EF - Bellatrix - SSZ consensus objects " & preset():
|
||||||
of "Validator": checkSSZ(Validator, path, hash)
|
of "Validator": checkSSZ(Validator, path, hash)
|
||||||
of "VoluntaryExit": checkSSZ(VoluntaryExit, path, hash)
|
of "VoluntaryExit": checkSSZ(VoluntaryExit, path, hash)
|
||||||
else:
|
else:
|
||||||
raise newException(ValueError, "Unsupported test: " & sszType)
|
raise newException(ValueError, "Unsupported test: " & sszType)
|
||||||
|
|
|
@ -79,7 +79,7 @@ proc runTest[T, U](
|
||||||
|
|
||||||
suite baseDescription & "Attestation " & preset():
|
suite baseDescription & "Attestation " & preset():
|
||||||
proc applyAttestation(
|
proc applyAttestation(
|
||||||
preState: var capella.BeaconState, attestation: Attestation):
|
preState: var capella.BeaconState, attestation: phase0.Attestation):
|
||||||
Result[void, cstring] =
|
Result[void, cstring] =
|
||||||
var cache: StateCache
|
var cache: StateCache
|
||||||
let
|
let
|
||||||
|
@ -94,14 +94,14 @@ suite baseDescription & "Attestation " & preset():
|
||||||
ok()
|
ok()
|
||||||
|
|
||||||
for path in walkTests(OpAttestationsDir):
|
for path in walkTests(OpAttestationsDir):
|
||||||
runTest[Attestation, typeof applyAttestation](
|
runTest[phase0.Attestation, typeof applyAttestation](
|
||||||
OpAttestationsDir, suiteName, "Attestation", "attestation",
|
OpAttestationsDir, suiteName, "Attestation", "attestation",
|
||||||
applyAttestation, path)
|
applyAttestation, path)
|
||||||
|
|
||||||
suite baseDescription & "Attester Slashing " & preset():
|
suite baseDescription & "Attester Slashing " & preset():
|
||||||
proc applyAttesterSlashing(
|
proc applyAttesterSlashing(
|
||||||
preState: var capella.BeaconState, attesterSlashing: AttesterSlashing):
|
preState: var capella.BeaconState,
|
||||||
Result[void, cstring] =
|
attesterSlashing: phase0.AttesterSlashing): Result[void, cstring] =
|
||||||
var cache: StateCache
|
var cache: StateCache
|
||||||
doAssert (? process_attester_slashing(
|
doAssert (? process_attester_slashing(
|
||||||
defaultRuntimeConfig, preState, attesterSlashing, {strictVerification},
|
defaultRuntimeConfig, preState, attesterSlashing, {strictVerification},
|
||||||
|
@ -109,7 +109,7 @@ suite baseDescription & "Attester Slashing " & preset():
|
||||||
ok()
|
ok()
|
||||||
|
|
||||||
for path in walkTests(OpAttSlashingDir):
|
for path in walkTests(OpAttSlashingDir):
|
||||||
runTest[AttesterSlashing, typeof applyAttesterSlashing](
|
runTest[phase0.AttesterSlashing, typeof applyAttesterSlashing](
|
||||||
OpAttSlashingDir, suiteName, "Attester Slashing", "attester_slashing",
|
OpAttSlashingDir, suiteName, "Attester Slashing", "attester_slashing",
|
||||||
applyAttesterSlashing, path)
|
applyAttesterSlashing, path)
|
||||||
|
|
||||||
|
@ -226,4 +226,4 @@ suite baseDescription & "Withdrawals " & preset():
|
||||||
for path in walkTests(OpWithdrawalsDir):
|
for path in walkTests(OpWithdrawalsDir):
|
||||||
runTest[capella.ExecutionPayload, typeof applyWithdrawals](
|
runTest[capella.ExecutionPayload, typeof applyWithdrawals](
|
||||||
OpWithdrawalsDir, suiteName, "Withdrawals", "execution_payload",
|
OpWithdrawalsDir, suiteName, "Withdrawals", "execution_payload",
|
||||||
applyWithdrawals, path)
|
applyWithdrawals, path)
|
||||||
|
|
|
@ -110,10 +110,10 @@ suite "EF - Capella - SSZ consensus objects " & preset():
|
||||||
let hash = loadExpectedHashTreeRoot(path)
|
let hash = loadExpectedHashTreeRoot(path)
|
||||||
|
|
||||||
case sszType:
|
case sszType:
|
||||||
of "AggregateAndProof": checkSSZ(AggregateAndProof, path, hash)
|
of "AggregateAndProof": checkSSZ(phase0.AggregateAndProof, path, hash)
|
||||||
of "Attestation": checkSSZ(Attestation, path, hash)
|
of "Attestation": checkSSZ(phase0.Attestation, path, hash)
|
||||||
of "AttestationData": checkSSZ(AttestationData, path, hash)
|
of "AttestationData": checkSSZ(AttestationData, path, hash)
|
||||||
of "AttesterSlashing": checkSSZ(AttesterSlashing, path, hash)
|
of "AttesterSlashing": checkSSZ(phase0.AttesterSlashing, path, hash)
|
||||||
of "BeaconBlock": checkSSZ(capella.BeaconBlock, path, hash)
|
of "BeaconBlock": checkSSZ(capella.BeaconBlock, path, hash)
|
||||||
of "BeaconBlockBody": checkSSZ(capella.BeaconBlockBody, path, hash)
|
of "BeaconBlockBody": checkSSZ(capella.BeaconBlockBody, path, hash)
|
||||||
of "BeaconBlockHeader": checkSSZ(BeaconBlockHeader, path, hash)
|
of "BeaconBlockHeader": checkSSZ(BeaconBlockHeader, path, hash)
|
||||||
|
@ -126,14 +126,16 @@ suite "EF - Capella - SSZ consensus objects " & preset():
|
||||||
of "DepositMessage": checkSSZ(DepositMessage, path, hash)
|
of "DepositMessage": checkSSZ(DepositMessage, path, hash)
|
||||||
of "Eth1Block": checkSSZ(Eth1Block, path, hash)
|
of "Eth1Block": checkSSZ(Eth1Block, path, hash)
|
||||||
of "Eth1Data": checkSSZ(Eth1Data, path, hash)
|
of "Eth1Data": checkSSZ(Eth1Data, path, hash)
|
||||||
of "ExecutionPayload": checkSSZ(ExecutionPayload, path, hash)
|
of "ExecutionPayload":
|
||||||
|
checkSSZ(capella.ExecutionPayload, path, hash)
|
||||||
of "ExecutionPayloadHeader":
|
of "ExecutionPayloadHeader":
|
||||||
checkSSZ(ExecutionPayloadHeader, path, hash)
|
checkSSZ(capella.ExecutionPayloadHeader, path, hash)
|
||||||
of "Fork": checkSSZ(Fork, path, hash)
|
of "Fork": checkSSZ(Fork, path, hash)
|
||||||
of "ForkData": checkSSZ(ForkData, path, hash)
|
of "ForkData": checkSSZ(ForkData, path, hash)
|
||||||
of "HistoricalBatch": checkSSZ(HistoricalBatch, path, hash)
|
of "HistoricalBatch": checkSSZ(HistoricalBatch, path, hash)
|
||||||
of "HistoricalSummary": checkSSZ(HistoricalSummary, path, hash)
|
of "HistoricalSummary": checkSSZ(HistoricalSummary, path, hash)
|
||||||
of "IndexedAttestation": checkSSZ(IndexedAttestation, path, hash)
|
of "IndexedAttestation":
|
||||||
|
checkSSZ(phase0.IndexedAttestation, path, hash)
|
||||||
of "LightClientBootstrap":
|
of "LightClientBootstrap":
|
||||||
checkSSZ(capella.LightClientBootstrap, path, hash)
|
checkSSZ(capella.LightClientBootstrap, path, hash)
|
||||||
of "LightClientHeader":
|
of "LightClientHeader":
|
||||||
|
@ -148,7 +150,7 @@ suite "EF - Capella - SSZ consensus objects " & preset():
|
||||||
of "PowBlock": checkSSZ(PowBlock, path, hash)
|
of "PowBlock": checkSSZ(PowBlock, path, hash)
|
||||||
of "ProposerSlashing": checkSSZ(ProposerSlashing, path, hash)
|
of "ProposerSlashing": checkSSZ(ProposerSlashing, path, hash)
|
||||||
of "SignedAggregateAndProof":
|
of "SignedAggregateAndProof":
|
||||||
checkSSZ(SignedAggregateAndProof, path, hash)
|
checkSSZ(phase0.SignedAggregateAndProof, path, hash)
|
||||||
of "SignedBeaconBlock":
|
of "SignedBeaconBlock":
|
||||||
checkSSZ(capella.SignedBeaconBlock, path, hash)
|
checkSSZ(capella.SignedBeaconBlock, path, hash)
|
||||||
of "SignedBeaconBlockHeader":
|
of "SignedBeaconBlockHeader":
|
||||||
|
|
|
@ -79,7 +79,7 @@ proc runTest[T, U](
|
||||||
|
|
||||||
suite baseDescription & "Attestation " & preset():
|
suite baseDescription & "Attestation " & preset():
|
||||||
proc applyAttestation(
|
proc applyAttestation(
|
||||||
preState: var deneb.BeaconState, attestation: Attestation):
|
preState: var deneb.BeaconState, attestation: phase0.Attestation):
|
||||||
Result[void, cstring] =
|
Result[void, cstring] =
|
||||||
var cache: StateCache
|
var cache: StateCache
|
||||||
let
|
let
|
||||||
|
@ -94,14 +94,14 @@ suite baseDescription & "Attestation " & preset():
|
||||||
ok()
|
ok()
|
||||||
|
|
||||||
for path in walkTests(OpAttestationsDir):
|
for path in walkTests(OpAttestationsDir):
|
||||||
runTest[Attestation, typeof applyAttestation](
|
runTest[phase0.Attestation, typeof applyAttestation](
|
||||||
OpAttestationsDir, suiteName, "Attestation", "attestation",
|
OpAttestationsDir, suiteName, "Attestation", "attestation",
|
||||||
applyAttestation, path)
|
applyAttestation, path)
|
||||||
|
|
||||||
suite baseDescription & "Attester Slashing " & preset():
|
suite baseDescription & "Attester Slashing " & preset():
|
||||||
proc applyAttesterSlashing(
|
proc applyAttesterSlashing(
|
||||||
preState: var deneb.BeaconState, attesterSlashing: AttesterSlashing):
|
preState: var deneb.BeaconState,
|
||||||
Result[void, cstring] =
|
attesterSlashing: phase0.AttesterSlashing): Result[void, cstring] =
|
||||||
var cache: StateCache
|
var cache: StateCache
|
||||||
doAssert (? process_attester_slashing(
|
doAssert (? process_attester_slashing(
|
||||||
defaultRuntimeConfig, preState, attesterSlashing, {strictVerification},
|
defaultRuntimeConfig, preState, attesterSlashing, {strictVerification},
|
||||||
|
@ -109,7 +109,7 @@ suite baseDescription & "Attester Slashing " & preset():
|
||||||
ok()
|
ok()
|
||||||
|
|
||||||
for path in walkTests(OpAttSlashingDir):
|
for path in walkTests(OpAttSlashingDir):
|
||||||
runTest[AttesterSlashing, typeof applyAttesterSlashing](
|
runTest[phase0.AttesterSlashing, typeof applyAttesterSlashing](
|
||||||
OpAttSlashingDir, suiteName, "Attester Slashing", "attester_slashing",
|
OpAttSlashingDir, suiteName, "Attester Slashing", "attester_slashing",
|
||||||
applyAttesterSlashing, path)
|
applyAttesterSlashing, path)
|
||||||
|
|
||||||
|
@ -228,4 +228,4 @@ suite baseDescription & "Withdrawals " & preset():
|
||||||
for path in walkTests(OpWithdrawalsDir):
|
for path in walkTests(OpWithdrawalsDir):
|
||||||
runTest[deneb.ExecutionPayload, typeof applyWithdrawals](
|
runTest[deneb.ExecutionPayload, typeof applyWithdrawals](
|
||||||
OpWithdrawalsDir, suiteName, "Withdrawals", "execution_payload",
|
OpWithdrawalsDir, suiteName, "Withdrawals", "execution_payload",
|
||||||
applyWithdrawals, path)
|
applyWithdrawals, path)
|
||||||
|
|
|
@ -113,10 +113,10 @@ suite "EF - Deneb - SSZ consensus objects " & preset():
|
||||||
let hash = loadExpectedHashTreeRoot(path)
|
let hash = loadExpectedHashTreeRoot(path)
|
||||||
|
|
||||||
case sszType:
|
case sszType:
|
||||||
of "AggregateAndProof": checkSSZ(AggregateAndProof, path, hash)
|
of "AggregateAndProof": checkSSZ(phase0.AggregateAndProof, path, hash)
|
||||||
of "Attestation": checkSSZ(Attestation, path, hash)
|
of "Attestation": checkSSZ(phase0.Attestation, path, hash)
|
||||||
of "AttestationData": checkSSZ(AttestationData, path, hash)
|
of "AttestationData": checkSSZ(AttestationData, path, hash)
|
||||||
of "AttesterSlashing": checkSSZ(AttesterSlashing, path, hash)
|
of "AttesterSlashing": checkSSZ(phase0.AttesterSlashing, path, hash)
|
||||||
of "BeaconBlock": checkSSZ(deneb.BeaconBlock, path, hash)
|
of "BeaconBlock": checkSSZ(deneb.BeaconBlock, path, hash)
|
||||||
of "BeaconBlockBody": checkSSZ(deneb.BeaconBlockBody, path, hash)
|
of "BeaconBlockBody": checkSSZ(deneb.BeaconBlockBody, path, hash)
|
||||||
of "BeaconBlockHeader": checkSSZ(BeaconBlockHeader, path, hash)
|
of "BeaconBlockHeader": checkSSZ(BeaconBlockHeader, path, hash)
|
||||||
|
@ -131,18 +131,22 @@ suite "EF - Deneb - SSZ consensus objects " & preset():
|
||||||
of "DepositMessage": checkSSZ(DepositMessage, path, hash)
|
of "DepositMessage": checkSSZ(DepositMessage, path, hash)
|
||||||
of "Eth1Block": checkSSZ(Eth1Block, path, hash)
|
of "Eth1Block": checkSSZ(Eth1Block, path, hash)
|
||||||
of "Eth1Data": checkSSZ(Eth1Data, path, hash)
|
of "Eth1Data": checkSSZ(Eth1Data, path, hash)
|
||||||
of "ExecutionPayload": checkSSZ(ExecutionPayload, path, hash)
|
of "ExecutionPayload":
|
||||||
|
checkSSZ(deneb.ExecutionPayload, path, hash)
|
||||||
of "ExecutionPayloadHeader":
|
of "ExecutionPayloadHeader":
|
||||||
checkSSZ(ExecutionPayloadHeader, path, hash)
|
checkSSZ(deneb.ExecutionPayloadHeader, path, hash)
|
||||||
of "Fork": checkSSZ(Fork, path, hash)
|
of "Fork": checkSSZ(Fork, path, hash)
|
||||||
of "ForkData": checkSSZ(ForkData, path, hash)
|
of "ForkData": checkSSZ(ForkData, path, hash)
|
||||||
of "HistoricalBatch": checkSSZ(HistoricalBatch, path, hash)
|
of "HistoricalBatch": checkSSZ(HistoricalBatch, path, hash)
|
||||||
of "HistoricalSummary": checkSSZ(HistoricalSummary, path, hash)
|
of "HistoricalSummary": checkSSZ(HistoricalSummary, path, hash)
|
||||||
of "IndexedAttestation": checkSSZ(IndexedAttestation, path, hash)
|
of "IndexedAttestation":
|
||||||
|
checkSSZ(phase0.IndexedAttestation, path, hash)
|
||||||
of "LightClientBootstrap":
|
of "LightClientBootstrap":
|
||||||
checkSSZ(deneb.LightClientBootstrap, path, hash)
|
checkSSZ(deneb.LightClientBootstrap, path, hash)
|
||||||
of "LightClientHeader": checkSSZ(deneb.LightClientHeader, path, hash)
|
of "LightClientHeader":
|
||||||
of "LightClientUpdate": checkSSZ(deneb.LightClientUpdate, path, hash)
|
checkSSZ(deneb.LightClientHeader, path, hash)
|
||||||
|
of "LightClientUpdate":
|
||||||
|
checkSSZ(deneb.LightClientUpdate, path, hash)
|
||||||
of "LightClientFinalityUpdate":
|
of "LightClientFinalityUpdate":
|
||||||
checkSSZ(deneb.LightClientFinalityUpdate, path, hash)
|
checkSSZ(deneb.LightClientFinalityUpdate, path, hash)
|
||||||
of "LightClientOptimisticUpdate":
|
of "LightClientOptimisticUpdate":
|
||||||
|
@ -151,7 +155,7 @@ suite "EF - Deneb - SSZ consensus objects " & preset():
|
||||||
of "PowBlock": checkSSZ(PowBlock, path, hash)
|
of "PowBlock": checkSSZ(PowBlock, path, hash)
|
||||||
of "ProposerSlashing": checkSSZ(ProposerSlashing, path, hash)
|
of "ProposerSlashing": checkSSZ(ProposerSlashing, path, hash)
|
||||||
of "SignedAggregateAndProof":
|
of "SignedAggregateAndProof":
|
||||||
checkSSZ(SignedAggregateAndProof, path, hash)
|
checkSSZ(phase0.SignedAggregateAndProof, path, hash)
|
||||||
of "SignedBeaconBlock":
|
of "SignedBeaconBlock":
|
||||||
checkSSZ(deneb.SignedBeaconBlock, path, hash)
|
checkSSZ(deneb.SignedBeaconBlock, path, hash)
|
||||||
of "SignedBeaconBlockHeader":
|
of "SignedBeaconBlockHeader":
|
||||||
|
|
|
@ -276,4 +276,4 @@ suite baseDescription & "Withdrawals " & preset():
|
||||||
for path in walkTests(OpWithdrawalsDir):
|
for path in walkTests(OpWithdrawalsDir):
|
||||||
runTest[electra.ExecutionPayload, typeof applyWithdrawals](
|
runTest[electra.ExecutionPayload, typeof applyWithdrawals](
|
||||||
OpWithdrawalsDir, suiteName, "Withdrawals", "execution_payload",
|
OpWithdrawalsDir, suiteName, "Withdrawals", "execution_payload",
|
||||||
applyWithdrawals, path)
|
applyWithdrawals, path)
|
||||||
|
|
|
@ -136,9 +136,10 @@ suite "EF - Electra - SSZ consensus objects " & preset():
|
||||||
of "DepositRequest": checkSSZ(DepositRequest, path, hash)
|
of "DepositRequest": checkSSZ(DepositRequest, path, hash)
|
||||||
of "Eth1Block": checkSSZ(Eth1Block, path, hash)
|
of "Eth1Block": checkSSZ(Eth1Block, path, hash)
|
||||||
of "Eth1Data": checkSSZ(Eth1Data, path, hash)
|
of "Eth1Data": checkSSZ(Eth1Data, path, hash)
|
||||||
of "ExecutionPayload": checkSSZ(ExecutionPayload, path, hash)
|
of "ExecutionPayload":
|
||||||
|
checkSSZ(electra.ExecutionPayload, path, hash)
|
||||||
of "ExecutionPayloadHeader":
|
of "ExecutionPayloadHeader":
|
||||||
checkSSZ(ExecutionPayloadHeader, path, hash)
|
checkSSZ(electra.ExecutionPayloadHeader, path, hash)
|
||||||
of "Fork": checkSSZ(Fork, path, hash)
|
of "Fork": checkSSZ(Fork, path, hash)
|
||||||
of "ForkData": checkSSZ(ForkData, path, hash)
|
of "ForkData": checkSSZ(ForkData, path, hash)
|
||||||
of "HistoricalBatch": checkSSZ(HistoricalBatch, path, hash)
|
of "HistoricalBatch": checkSSZ(HistoricalBatch, path, hash)
|
||||||
|
@ -146,8 +147,10 @@ suite "EF - Electra - SSZ consensus objects " & preset():
|
||||||
of "IndexedAttestation": checkSSZ(electra.IndexedAttestation, path, hash)
|
of "IndexedAttestation": checkSSZ(electra.IndexedAttestation, path, hash)
|
||||||
of "LightClientBootstrap":
|
of "LightClientBootstrap":
|
||||||
checkSSZ(electra.LightClientBootstrap, path, hash)
|
checkSSZ(electra.LightClientBootstrap, path, hash)
|
||||||
of "LightClientHeader": checkSSZ(electra.LightClientHeader, path, hash)
|
of "LightClientHeader":
|
||||||
of "LightClientUpdate": checkSSZ(electra.LightClientUpdate, path, hash)
|
checkSSZ(electra.LightClientHeader, path, hash)
|
||||||
|
of "LightClientUpdate":
|
||||||
|
checkSSZ(electra.LightClientUpdate, path, hash)
|
||||||
of "LightClientFinalityUpdate":
|
of "LightClientFinalityUpdate":
|
||||||
checkSSZ(electra.LightClientFinalityUpdate, path, hash)
|
checkSSZ(electra.LightClientFinalityUpdate, path, hash)
|
||||||
of "LightClientOptimisticUpdate":
|
of "LightClientOptimisticUpdate":
|
||||||
|
@ -184,4 +187,4 @@ suite "EF - Electra - SSZ consensus objects " & preset():
|
||||||
of "VoluntaryExit": checkSSZ(VoluntaryExit, path, hash)
|
of "VoluntaryExit": checkSSZ(VoluntaryExit, path, hash)
|
||||||
of "WithdrawalRequest": checkSSZ(WithdrawalRequest, path, hash)
|
of "WithdrawalRequest": checkSSZ(WithdrawalRequest, path, hash)
|
||||||
else:
|
else:
|
||||||
raise newException(ValueError, "Unsupported test: " & sszType)
|
raise newException(ValueError, "Unsupported test: " & sszType)
|
||||||
|
|
|
@ -150,4 +150,4 @@ suite baseDescription & "Voluntary Exit " & preset():
|
||||||
for path in walkTests(OpVoluntaryExitDir):
|
for path in walkTests(OpVoluntaryExitDir):
|
||||||
runTest[SignedVoluntaryExit, typeof applyVoluntaryExit](
|
runTest[SignedVoluntaryExit, typeof applyVoluntaryExit](
|
||||||
OpVoluntaryExitDir, suiteName, "Voluntary Exit", "voluntary_exit",
|
OpVoluntaryExitDir, suiteName, "Voluntary Exit", "voluntary_exit",
|
||||||
applyVoluntaryExit, path)
|
applyVoluntaryExit, path)
|
||||||
|
|
|
@ -108,10 +108,10 @@ suite "EF - Phase 0 - SSZ consensus objects " & preset():
|
||||||
let hash = loadExpectedHashTreeRoot(path)
|
let hash = loadExpectedHashTreeRoot(path)
|
||||||
|
|
||||||
case sszType:
|
case sszType:
|
||||||
of "AggregateAndProof": checkSSZ(AggregateAndProof, path, hash)
|
of "AggregateAndProof": checkSSZ(phase0.AggregateAndProof, path, hash)
|
||||||
of "Attestation": checkSSZ(Attestation, path, hash)
|
of "Attestation": checkSSZ(phase0.Attestation, path, hash)
|
||||||
of "AttestationData": checkSSZ(AttestationData, path, hash)
|
of "AttestationData": checkSSZ(AttestationData, path, hash)
|
||||||
of "AttesterSlashing": checkSSZ(AttesterSlashing, path, hash)
|
of "AttesterSlashing": checkSSZ(phase0.AttesterSlashing, path, hash)
|
||||||
of "BeaconBlock": checkSSZ(phase0.BeaconBlock, path, hash)
|
of "BeaconBlock": checkSSZ(phase0.BeaconBlock, path, hash)
|
||||||
of "BeaconBlockBody": checkSSZ(phase0.BeaconBlockBody, path, hash)
|
of "BeaconBlockBody": checkSSZ(phase0.BeaconBlockBody, path, hash)
|
||||||
of "BeaconBlockHeader": checkSSZ(BeaconBlockHeader, path, hash)
|
of "BeaconBlockHeader": checkSSZ(BeaconBlockHeader, path, hash)
|
||||||
|
@ -125,11 +125,12 @@ suite "EF - Phase 0 - SSZ consensus objects " & preset():
|
||||||
of "Fork": checkSSZ(Fork, path, hash)
|
of "Fork": checkSSZ(Fork, path, hash)
|
||||||
of "ForkData": checkSSZ(ForkData, path, hash)
|
of "ForkData": checkSSZ(ForkData, path, hash)
|
||||||
of "HistoricalBatch": checkSSZ(HistoricalBatch, path, hash)
|
of "HistoricalBatch": checkSSZ(HistoricalBatch, path, hash)
|
||||||
of "IndexedAttestation": checkSSZ(IndexedAttestation, path, hash)
|
of "IndexedAttestation":
|
||||||
|
checkSSZ(phase0.IndexedAttestation, path, hash)
|
||||||
of "PendingAttestation": checkSSZ(PendingAttestation, path, hash)
|
of "PendingAttestation": checkSSZ(PendingAttestation, path, hash)
|
||||||
of "ProposerSlashing": checkSSZ(ProposerSlashing, path, hash)
|
of "ProposerSlashing": checkSSZ(ProposerSlashing, path, hash)
|
||||||
of "SignedAggregateAndProof":
|
of "SignedAggregateAndProof":
|
||||||
checkSSZ(SignedAggregateAndProof, path, hash)
|
checkSSZ(phase0.SignedAggregateAndProof, path, hash)
|
||||||
of "SignedBeaconBlock": checkSSZ(phase0.SignedBeaconBlock, path, hash)
|
of "SignedBeaconBlock": checkSSZ(phase0.SignedBeaconBlock, path, hash)
|
||||||
of "SignedBeaconBlockHeader":
|
of "SignedBeaconBlockHeader":
|
||||||
checkSSZ(SignedBeaconBlockHeader, path, hash)
|
checkSSZ(SignedBeaconBlockHeader, path, hash)
|
||||||
|
|
Loading…
Reference in New Issue