-
Notifications
You must be signed in to change notification settings - Fork 233
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
increase after-block attestation delay #3518
Conversation
Recently, block processing times have been going up as the network grows making early attestation riskier. Since blocks are big and attestations are small (though numerous and therefore bandwidth-intense), it seems better to wait a little bit longer after receiving a block, before we publish the attestation.
# Regardless, because we "just" received the block, we'll impose the | ||
# delay. | ||
|
||
const afterBlockDelay = 1000 | ||
const afterBlockDelay = millis(2000) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should probably be scaled with SECONDS_PER_SLOT
, or take into account the attestation_deadline
. But those constants seem to be untouched on most networks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
huh, that's a good point actually .. gnosis runs a different slot time
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the deadline would be used on those networks as an upper limit, so the impact of the change is .. limited .. but still
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But those constants seem to be untouched on most networks.
Gnosis chain changes SECONDS_PER_SLOT
Recently, block processing times have been going up as the network grows
making early attestation riskier. Since blocks are big and attestations
are small (though numerous and therefore bandwidth-intense), it seems
better to wait a little bit longer after receiving a block, before we
publish the attestation.