Replies: 3 comments 1 reply
-
Another question: what's the benefit of using the beacon block root as the random number compared to much cheaper From ChatGPT:
|
Beta Was this translation helpful? Give feedback.
-
Another minor optimization idea: in |
Beta Was this translation helpful? Give feedback.
-
Agreed. Fixed in: NethermindEth/Taiko-Preconf-AVS#180
We want to randomness to be constant for an entire epoch, and the source of random for the next epoch should ideally be in the current epoch itself, so that a nodes have advanced knowledge of who is going to be the fallback.
There won't be a situation wherein both the calls end up using the same timestamp, since during fallback preconfer selection, we use a slot from the previous epoch, but the fallback preconfer selection happens only when the slot being proven incorrect is in the current epoch (because the lookahead has lost trust, and we expect a fallback preconfer to take over remaining slots). |
Beta Was this translation helpful? Give feedback.
-
The current impl is:
It seems if there is no preconfer registered at all,
preconferIndex
will be 1 and "address(0)" will be returned. Functions that call thisgetFallbackPreconfer
doesn't check if the returned value is "address(0)" or not, which seems to be an issue.The other minor issue is that the preconfirm at index 1 has twice the odds of being selected. The following change will fix it.
Beta Was this translation helpful? Give feedback.
All reactions