log overall sent aggregated attestation message signatures (#2754)

* log overall sent aggregated attestation message signatures

* log aggregated attestations via REST API
This commit is contained in:
tersec 2021-08-03 10:32:55 +00:00 committed by GitHub
parent ca96a98131
commit d638ca0c7f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 3 deletions

View File

@ -82,7 +82,8 @@ proc installValidatorApiHandlers*(rpcServer: RpcServer, node: BeaconNode) {.
node.network.broadcast(
getAggregateAndProofsTopic(node.dag.forkDigests.phase0), payload)
notice "Aggregated attestation sent",
attestation = shortLog(payload.message.aggregate)
attestation = shortLog(payload.message.aggregate),
signature = shortLog(payload.signature)
rpcServer.rpc("get_v1_validator_duties_attester") do (
epoch: Epoch, public_keys: seq[ValidatorPubKey]) -> seq[AttesterDuties]:

View File

@ -290,6 +290,9 @@ proc installValidatorApiHandlers*(router: var RestRouter, node: BeaconNode) =
$res.error())
node.network.broadcast(
getAggregateAndProofsTopic(node.dag.forkDigests.phase0), item)
notice "Aggregated attestation sent",
attestation = shortLog(item.message.aggregate),
signature = shortLog(item.signature)
return RestApiResponse.jsonMsgResponse(AggregateAndProofValidationSuccess)

View File

@ -580,6 +580,7 @@ proc broadcastAggregatedAttestations(
notice "Aggregated attestation sent",
attestation = shortLog(signedAP.message.aggregate),
validator = shortLog(curr[0].v),
signature = shortLog(signedAP.signature),
aggregationSlot
proc updateValidatorMetrics*(node: BeaconNode) =

View File

@ -1,2 +0,0 @@
# Use only `secp256k1` public key cryptography as an identity in LibP2P.
-d:"libp2p_pki_schemes=secp256k1"