-
Notifications
You must be signed in to change notification settings - Fork 179
Description
We should consider introducing a nonce with each log that influences consensus. This would allow for an optimization within the proof programs where they no longer need to observe and filter all logs to guarantee that they have the full set of logs. A witness can be used to populate the logs and the program can check that the nonces all line up to guarantee that the complete set of logs are present within the program.
There are currently 2 logs that impact consensus:
TransactionDepositedfrom theOptimismPortalConfigUpdatedfrom theSystemConfig
TransactionDeposited
We could have a nonce on L1 and on L2 and keep them up to date, this could be generally useful to know how many deposits have yet to be processed by offchain software. If we want to hold the invariant that
ConfigUpdated
I think that these events can be removed completely from consensus given we follow the pattern designed in #122 and a generic form of this