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
[MEL] - Implement recording of preimages related to sequencer batches (DA providers) (#4133)
* [MEL] - Implement delayed message accumulation in native mode
* address PR comments
* add documentation for checkAgainstAccumulator and a minor fix
* undo changes to addressed review comments from other PRs
* dont make L2msg rlp optional
* make meldb take a KeyValueStore
* handle reorg in start step- reducing code diff
* Message extraction function works with logs instead of receipts
* only keep delayed message accumulation changes
* cleanup non related code
* Implement preimage recorder for DelayedMessageDatabase interface
* Update cmd/mel-replay/delayed_message_db_test.go
* fix test name
* code refactor
* fix lint
* Implement recording of preimages related to sequencer batches (DA providers)
* address PR comments
* add RecoverPayloadAndPreimages method on DACertificatePreimageReader
* implement RecoverPayloadAndPreimages method on EvilDAProvider
* fix schema.go
* bring in merkle partials calculation step in ExtractMessages function
* code refactor
* add documentation
* add changelog
* move recording related code to new package, melrecording
* reduce conflicts
* address PR comments
---------
Co-authored-by: Raul Jordan <[email protected]>
Co-authored-by: Pepper Lebeck-Jobe <[email protected]>
Copy file name to clipboardExpand all lines: arbnode/mel/runner/backlog.go
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -8,14 +8,14 @@ import (
8
8
)
9
9
10
10
// InitializeDelayedMessageBacklog is to be only called by the Start fsm step of MEL. This function fills the backlog based on the seen and read count from the given mel state
ifstate.DelayedMessagesSeen==0&&state.DelayedMessagesRead==0 { // this is the first mel state so no need to initialize backlog even if the state isn't finalized yet
13
13
returnnil
14
14
}
15
15
finalizedDelayedMessagesRead:=state.DelayedMessagesRead// Assume to be finalized, then update if needed
// Notice that instead of having seenUnread list from delayed index 13 to 25 inclusive we will have it from 7 to 25 as only till block=7 the chain has finalized and that block has DelayedMessagesRead=7
0 commit comments