tweak indentation (#6548)
This commit is contained in:
parent
7b6caebf6e
commit
bd47f62f07
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue