Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Info log validator index when publishing attestations #5346

Closed
nflaig opened this issue Apr 5, 2023 · 5 comments
Closed

Info log validator index when publishing attestations #5346

nflaig opened this issue Apr 5, 2023 · 5 comments
Labels
meta-discussion Indicates a topic that requires input from various developers. meta-feature-request Issues to track feature requests.

Comments

@nflaig
Copy link
Member

nflaig commented Apr 5, 2023

Description

Currently, there is no info log indicating which validator published an attestation. We just log info: Published attestations slot=6156403, count=1 since we publish all attestation for the slot at once.

There is a debug log Signed attestation... which included the validator index but it's not on info level and enabling the debug logs includes tons of others logs which might not be desired.

Either we can add a feature flag to VC to log the validator index (separate log per published attestation) and/or we implement solution proposed in #5336 would log published attestations with validator index on BN side.

Related

@nflaig nflaig changed the title Info log validator index when publishing attesattions Info log validator index when publishing attestations Apr 5, 2023
@nflaig nflaig added the meta-feature-request Issues to track feature requests. label Apr 5, 2023
@dapplion
Copy link
Contributor

dapplion commented Apr 6, 2023

Please keep in mind that some vc deployments run many keys. Dumping all indexes is too much. Also if you run one key it would be redundant information. This feature seems appealing for medium operators running a few keys. Do other clients do that by default at the info level?

@philknows
Copy link
Member

Also curious whether other clients will log the index each time if there's one key. I feel like there needs to be some minimum validator threshold for this to be useful? We all like simplicity and cleanliness but there have been times where I feel that this could've been useful for debugging issues when there was > 1 key.

@nflaig
Copy link
Member Author

nflaig commented Apr 15, 2023

I guess we can all agree that it won't work to have this enabled by default. Adding it to debug also does not make much sense since we already have a log for signing which includes the index and nothing really happens after that until publish so we can assume if a validator successfully signed that it will be published, unless publish runs into an error but would see that log as well.

As this was a feature request by a user we can keep this open as discussion. I rather see this implemented on BN when validator monitor logs are enabled (#5336), this also has the advantage that you have a combined view of all your validators if running multiple VCs with a single BN which a lot of users do that have a solo staking setup + rocket pool where you run only a VC in the RP stack (or vice versa).

@nflaig nflaig added the meta-discussion Indicates a topic that requires input from various developers. label Apr 15, 2023
@philknows
Copy link
Member

There definitely seems to be more value for it on the BN side. At least for larger node operators, it would lead me to which VC cluster connected is having some sort of issue.

@nflaig
Copy link
Member Author

nflaig commented Nov 5, 2023

Detailed attestation information can be printed out on the beacon node side at info level if --validatorMonitorLogs is set

@nflaig nflaig closed this as completed Nov 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
meta-discussion Indicates a topic that requires input from various developers. meta-feature-request Issues to track feature requests.
Projects
None yet
Development

No branches or pull requests

3 participants