Replies: 3 comments 1 reply
-
If the validator at a certain slot does not belong to a preconfer, the slot is considered to be We represent these empty slots in this function by stating that the 0-address was the preconfer for the slot.
Now that I see it again, the else statement is redundant and confusing, makes sense to remove it. |
Beta Was this translation helpful? Give feedback.
-
Fixed here: NethermindEth/Taiko-Preconf-AVS#180 |
Beta Was this translation helpful? Give feedback.
-
@AnshuJalan, could you please confirm if my understanding is correct here: struct LookaheadBufferEntry {
// True if the preconfer is randomly selected
bool isFallback;
// Timestamp of the slot when the preconfer becomes the L1 validator
uint40 timestamp;
// Timestamp of the last slot with a valid preconfer
uint40 prevTimestamp;
// Address of the preconfer who is also the L1 validator
// The preconfer has the right to propose a block in the range (prevTimestamp, timestamp]
address preconfer;
} Even if two consecutive slots, 5th and 6th, have the same preconfer, we still need two separate entries for these blocks, representing |
Beta Was this translation helpful? Give feedback.
-
In the following code snippet:
Why
lookaheadEntry.timestamp == slotTimestamp
(I don't quite understand the comment in the else-statement). It seemspreconferInLookahead
will be zero unless this strict if-statement is true.Beta Was this translation helpful? Give feedback.
All reactions