You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The function SkipVerify(), will skip BABE verification if the epoch is less than or equal to skipToEpoch.
When running a live node the variable skipToEpoch should be unused, however it will default to 0. Thus, headers will never be verified for epoch 0. As epochs begin counting from 0 the first epoch worth of blocks will not be verified allowing nodes to send malicious blocks that will be accepted.
Consider reducing the condition that compares epoch to s.skipToEpoch to use a strict inequality.
The text was updated successfully, but these errors were encountered:
compares epoch to s.skipToEpoch with strict inequality. So, far we were
checking less than or equal to, in which epoch 0 never gets verified.
Fixes#2403
compares epoch to s.skipToEpoch with strict inequality. So, far we were
checking less than or equal to, in which epoch 0 never gets verified.
Fixes#2403
The function
SkipVerify()
, will skip BABE verification if the epoch is less than or equal toskipToEpoch
.When running a live node the variable
skipToEpoch
should be unused, however it will default to 0. Thus, headers will never be verified for epoch 0. As epochs begin counting from 0 the first epoch worth of blocks will not be verified allowing nodes to send malicious blocks that will be accepted.Consider reducing the condition that compares
epoch
tos.skipToEpoch
to use a strict inequality.The text was updated successfully, but these errors were encountered: