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
Instead of a hardcoded condition for first 2 epochs, we should simply rely if the pivotSlot is not the negative. That will suffice the few first epochs condition as well.
Describe the bug
When called
isValidAttestationData
for the an attestation which is targeting last slot of the second epoch it results to zero.It's because of the following condition always evaluates to
-1
for which we don't have a block header.lodestar/packages/beacon-node/src/chain/opPools/aggregatedAttestationPool.ts
Line 435 in 0886d75
Expected behavior
Instead of a hardcoded condition for first 2 epochs, we should simply rely if the
pivotSlot
is not the negative. That will suffice the few first epochs condition as well.lodestar/packages/beacon-node/src/chain/opPools/aggregatedAttestationPool.ts
Lines 430 to 432 in 0886d75
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: