-
Notifications
You must be signed in to change notification settings - Fork 450
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[NIT-2570] Avoids fetching batch in execution layer, consensus layer fills all necessary information regarding a batch to the execution layer #2377
Conversation
@@ -288,8 +288,7 @@ func (s *ExecutionEngine) resequenceReorgedMessages(messages []*arbostypes.Messa | |||
log.Warn("skipping non-standard sequencer message found from reorg", "header", header) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I want Lee's take on this,
But I think around line 275, when resequencing delayed messages, we should check if the delayed this is a BatchPostingReport message, and if so skip it and not resequence.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As discussed in a meeting, this behavior will not be changed in this PR.
Maybe this will be revisited in a future PR.
@@ -544,6 +544,18 @@ func (s *TransactionStreamer) GetMessage(seqNum arbutil.MessageIndex) (*arbostyp | |||
return nil, err | |||
} | |||
|
|||
err = message.Message.FillInBatchGasCost(func(batchNum uint64) ([]byte, error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We want to make absolutley sure that in every way we can get a message to consensus client, it will always have the batchGasCost Filled.
I think there are other cases we want to cover, specifically:
legacyGetDelayedMessageAndAccumulator
GetDelayedMessageAccumulatorAndParentChainBlockNumber
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Covered those other cases.
We don't have tests covering L1MessageType_BatchPostingReport today, right?
…layedMessageAccumulatorAndParentChainBlockNumber
…yed messages" This reverts commit 17d04ec.
2d1aee9
to
4b71218
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Avoids fetching batch in execution layer, consensus layer fills all necessary information regarding a batch to the execution layer