rm more Capella builder API remote signer support (#6012)
This commit is contained in:
parent
45c283c256
commit
e12f5e0bba
|
@ -703,7 +703,8 @@ template get_flag_and_inactivity_delta(
|
|||
penalty_denominator: uint64,
|
||||
epoch_participation: ptr EpochParticipationFlags,
|
||||
participating_increments: array[3, Gwei], info: var altair.EpochInfo,
|
||||
vidx: ValidatorIndex): auto =
|
||||
vidx: ValidatorIndex):
|
||||
(ValidatorIndex, Gwei, Gwei, Gwei, Gwei, Gwei, Gwei) =
|
||||
let
|
||||
base_reward = get_base_reward_increment(state, vidx, base_reward_per_increment)
|
||||
pflags =
|
||||
|
|
|
@ -568,10 +568,10 @@ proc getBlockSignature*(v: AttachedValidator, fork: Fork,
|
|||
withForkyMaybeBlindedBlck(blck):
|
||||
# TODO why isn't this a case statement
|
||||
when consensusFork < ConsensusFork.Bellatrix:
|
||||
return SignatureResult.err("Invalid beacon block fork version")
|
||||
return SignatureResult.err("Invalid beacon block fork")
|
||||
elif consensusFork == ConsensusFork.Bellatrix:
|
||||
when isBlinded:
|
||||
return SignatureResult.err("Invalid beacon block fork version")
|
||||
return SignatureResult.err("Invalid blinded beacon block fork")
|
||||
else:
|
||||
case v.data.remoteType
|
||||
of RemoteSignerType.Web3Signer:
|
||||
|
@ -587,18 +587,7 @@ proc getBlockSignature*(v: AttachedValidator, fork: Fork,
|
|||
proofs)
|
||||
elif consensusFork == ConsensusFork.Capella:
|
||||
when isBlinded:
|
||||
case v.data.remoteType
|
||||
of RemoteSignerType.Web3Signer:
|
||||
Web3SignerRequest.init(fork, genesis_validators_root,
|
||||
Web3SignerForkedBeaconBlock(kind: ConsensusFork.Capella,
|
||||
data: forkyMaybeBlindedBlck.toBeaconBlockHeader))
|
||||
of RemoteSignerType.VerifyingWeb3Signer:
|
||||
let proofs =
|
||||
blockPropertiesProofs(forkyMaybeBlindedBlck.body,
|
||||
capellaIndex)
|
||||
Web3SignerRequest.init(fork, genesis_validators_root,
|
||||
Web3SignerForkedBeaconBlock(kind: ConsensusFork.Capella,
|
||||
data: forkyMaybeBlindedBlck.toBeaconBlockHeader), proofs)
|
||||
return SignatureResult.err("Invalid blinded beacon block fork")
|
||||
else:
|
||||
case v.data.remoteType
|
||||
of RemoteSignerType.Web3Signer:
|
||||
|
@ -644,7 +633,7 @@ proc getBlockSignature*(v: AttachedValidator, fork: Fork,
|
|||
else:
|
||||
case blck.kind
|
||||
of ConsensusFork.Phase0, ConsensusFork.Altair:
|
||||
return SignatureResult.err("Invalid beacon block fork version")
|
||||
return SignatureResult.err("Invalid beacon block fork")
|
||||
of ConsensusFork.Bellatrix:
|
||||
case v.data.remoteType
|
||||
of RemoteSignerType.Web3Signer:
|
||||
|
|
Loading…
Reference in New Issue