@@ -578,21 +578,8 @@ proc getBlockSignature*(v: AttachedValidator, fork: Fork,
578578 let web3signerRequest =
579579 when blck is ForkedBlindedBeaconBlock :
580580 case blck.kind
581- of ConsensusFork .Phase0 .. ConsensusFork .Capella :
581+ of ConsensusFork .Phase0 .. ConsensusFork .Deneb :
582582 return SignatureResult .err (" Invalid blinded beacon block fork" )
583- of ConsensusFork .Deneb :
584- case v.data.remoteType
585- of RemoteSignerType .Web3Signer :
586- Web3SignerRequest .init (fork, genesis_validators_root,
587- Web3SignerForkedBeaconBlock (kind: ConsensusFork .Deneb ,
588- data: blck.denebData.toBeaconBlockHeader))
589- of RemoteSignerType .VerifyingWeb3Signer :
590- let proofs = blockPropertiesProofs (
591- blck.denebData.body, denebIndex)
592- Web3SignerRequest .init (fork, genesis_validators_root,
593- Web3SignerForkedBeaconBlock (kind: ConsensusFork .Deneb ,
594- data: blck.denebData.toBeaconBlockHeader),
595- proofs)
596583 of ConsensusFork .Electra :
597584 case v.data.remoteType
598585 of RemoteSignerType .Web3Signer :
@@ -647,26 +634,8 @@ proc getBlockSignature*(v: AttachedValidator, fork: Fork,
647634 proofs)
648635 elif blck is ForkedMaybeBlindedBeaconBlock :
649636 withForkyMaybeBlindedBlck (blck):
650- # TODO why isn't this a case statement
651- when consensusFork < ConsensusFork .Capella :
637+ when consensusFork < ConsensusFork .Deneb :
652638 return SignatureResult .err (" Invalid beacon block fork" )
653- elif consensusFork == ConsensusFork .Capella :
654- when isBlinded:
655- return SignatureResult .err (" Invalid blinded beacon block fork" )
656- else :
657- case v.data.remoteType
658- of RemoteSignerType .Web3Signer :
659- Web3SignerRequest .init (fork, genesis_validators_root,
660- Web3SignerForkedBeaconBlock (kind: ConsensusFork .Capella ,
661- data: forkyMaybeBlindedBlck.toBeaconBlockHeader))
662- of RemoteSignerType .VerifyingWeb3Signer :
663- let proofs =
664- blockPropertiesProofs (forkyMaybeBlindedBlck.body,
665- capellaIndex)
666- Web3SignerRequest .init (fork, genesis_validators_root,
667- Web3SignerForkedBeaconBlock (kind: ConsensusFork .Capella ,
668- data: forkyMaybeBlindedBlck.toBeaconBlockHeader),
669- proofs)
670639 elif consensusFork == ConsensusFork .Deneb :
671640 when isBlinded:
672641 case v.data.remoteType
@@ -753,21 +722,8 @@ proc getBlockSignature*(v: AttachedValidator, fork: Fork,
753722 proofs)
754723 else :
755724 case blck.kind
756- of ConsensusFork .Phase0 .. ConsensusFork .Bellatrix :
725+ of ConsensusFork .Phase0 .. ConsensusFork .Capella :
757726 return SignatureResult .err (" Invalid beacon block fork" )
758- of ConsensusFork .Capella :
759- case v.data.remoteType
760- of RemoteSignerType .Web3Signer :
761- Web3SignerRequest .init (fork, genesis_validators_root,
762- Web3SignerForkedBeaconBlock (kind: ConsensusFork .Capella ,
763- data: blck.capellaData.toBeaconBlockHeader))
764- of RemoteSignerType .VerifyingWeb3Signer :
765- let proofs = blockPropertiesProofs (
766- blck.capellaData.body, capellaIndex)
767- Web3SignerRequest .init (fork, genesis_validators_root,
768- Web3SignerForkedBeaconBlock (kind: ConsensusFork .Capella ,
769- data: blck.capellaData.toBeaconBlockHeader),
770- proofs)
771727 of ConsensusFork .Deneb :
772728 case v.data.remoteType
773729 of RemoteSignerType .Web3Signer :
0 commit comments