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

Remove logging deposit inclusion slot #8023

Merged
merged 5 commits into from
Dec 2, 2020

Conversation

terencechain
Copy link
Member

@terencechain terencechain commented Dec 2, 2020

What type of PR is this?

Removing old/expensive feature

What does this PR do? Why is it needed?

BlockTimeByHeight is not a cheap call when running external hosted web3 provider (e.g. infura). The call gets significantly more expensive with more unknown validating keys.

The actual usefulness of Deposit for validator received but not processed into the beacon state log is questionable. Validators use beacon block explorer with their eth1 address to check deposit status. Removing this log to save eth1 bandwidth is a fine trade off imo.

Most importantly, excessive calls to BlockTimeByHeight + using hosted web3 provider can cause context deadline and cause validators to miss attestation, that's ultimately what we want to avoid

Note: I didn't remove protobuf field since this has higher pirority. Removing the actual protobuf field will come later

Which issues(s) does this PR fix?

Fixes #8017

Other notes for review

Tested in Pyrmont

@terencechain terencechain added the Ready For Review A pull request ready for code review label Dec 2, 2020
@terencechain terencechain added this to the v1.0.4 milestone Dec 2, 2020
@terencechain terencechain self-assigned this Dec 2, 2020
@terencechain terencechain requested a review from a team as a code owner December 2, 2020 18:23
@prylabs-bulldozer prylabs-bulldozer bot merged commit 2153a2d into develop Dec 2, 2020
@delete-merged-branch delete-merged-branch bot deleted the rm-eth1-deposit-inclusion-log-usages branch December 2, 2020 21:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ready For Review A pull request ready for code review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Missing attestations every epoch
2 participants