tweak indentation (#6548)

This commit is contained in:
tersec 2024-09-13 23:31:45 +00:00 committed by GitHub
parent 7b6caebf6e
commit bd47f62f07
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 7 additions and 7 deletions

View File

@ -905,13 +905,13 @@ proc installValidatorApiHandlers*(router: var RestRouter, node: BeaconNode) =
var proofs: seq[Future[SendResult]] var proofs: seq[Future[SendResult]]
template addDecodedProofs(ProofType: untyped) = template addDecodedProofs(ProofType: untyped) =
let dres = decodeBody(seq[ProofType], contentBody.get()) let dres = decodeBody(seq[ProofType], contentBody.get())
if dres.isErr(): if dres.isErr():
return RestApiResponse.jsonError(Http400, return RestApiResponse.jsonError(Http400,
InvalidAggregateAndProofObjectError, InvalidAggregateAndProofObjectError,
$dres.error()) $dres.error())
for proof in dres.get(): for proof in dres.get():
proofs.add(node.router.routeSignedAggregateAndProof(proof)) proofs.add(node.router.routeSignedAggregateAndProof(proof))
case consensusVersion.get(): case consensusVersion.get():
of ConsensusFork.Phase0 .. ConsensusFork.Deneb: of ConsensusFork.Phase0 .. ConsensusFork.Deneb: