remove unused definitions (#4937)

This commit is contained in:
tersec 2023-05-11 14:39:36 +00:00 committed by GitHub
parent b3c6320d56
commit cc341e0ab7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 0 additions and 26 deletions

View File

@ -358,10 +358,6 @@ type
SigVerifiedBeaconBlockBody |
TrustedBeaconBlockBody
BlockParams = object
parentHash*: string
timestamp*: string
# TODO: There should be only a single generic HashedBeaconState definition
func initHashedBeaconState*(s: BeaconState): HashedBeaconState =
HashedBeaconState(data: s)

View File

@ -493,10 +493,6 @@ type
SigVerifiedBeaconBlockBody |
TrustedBeaconBlockBody
BlockParams = object
parentHash*: string
timestamp*: string
BeaconBlockValidatorChanges* = object
# Collection of exits that are suitable for block production
proposer_slashings*: List[ProposerSlashing, Limit MAX_PROPOSER_SLASHINGS]

View File

@ -509,10 +509,6 @@ type
SigVerifiedBeaconBlockBody |
TrustedBeaconBlockBody
BlockParams = object
parentHash*: string
timestamp*: string
# TODO: There should be only a single generic HashedBeaconState definition
func initHashedBeaconState*(s: BeaconState): HashedBeaconState =
HashedBeaconState(data: s)

View File

@ -588,20 +588,6 @@ proc readRuntimeConfig*(
# Isn't being used as a preset in the usual way: at any time, there's one correct value
checkCompatibility PROPOSER_SCORE_BOOST
# BEGIN TODO
# It should be possible to remove these once we migrate to the next
# release of the consensus test suite:
template readAliasedField(currentName: untyped, oldName: static string) =
if oldName in values:
cfg.currentName = try:
parse(typeof(cfg.currentName), values[oldName])
except ValueError as err:
raise (ref PresetFileError)(msg: "Unable to parse " & oldName)
readAliasedField DENEB_FORK_EPOCH, "EIP4844_FORK_EPOCH"
readAliasedField DENEB_FORK_VERSION, "EIP4844_FORK_VERSION"
# END TODO
for name, field in cfg.fieldPairs():
if name in values:
try: