-
Notifications
You must be signed in to change notification settings - Fork 81
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
feat: separate DepositTx and set suggested fee recipient #391
base: feat/zkvm-fault-proof
Are you sure you want to change the base?
Conversation
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. 🗂️ Base branches to auto review (2)
Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
8285ca1
to
67258f3
Compare
fa2f566
to
a820693
Compare
67258f3
to
86da0e2
Compare
86da0e2
to
3473ad1
Compare
// [Kroma: START] Use KromaDepositTx instead of DepositTx before MPT time | ||
if !s.cfg.IsKromaMPT(expectedTime) { | ||
for i, otx := range res.Transactions { | ||
if otx[0] == types.DepositTxType { | ||
var err error | ||
res.Transactions[i], err = derive.ToKromaDepositBytes(otx) | ||
if err != nil { | ||
return nil, fmt.Errorf("failed to convert deposit tx: %w", err) | ||
} | ||
} | ||
} | ||
} | ||
// [Kroma: END] | ||
|
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.
Since we already have ecotone applied, shouldn't we consider the case for version 1 ? I don't think there are any p2p nodes requesting version 0.
@@ -261,6 +261,15 @@ func BlockAsPayload(bl *types.Block, canyonForkTime *uint64) (*ExecutionPayload, | |||
return nil, fmt.Errorf("tx %d failed to marshal: %w", i, err) | |||
} | |||
opaqueTxs[i] = otx | |||
// [Kroma: START] Use KromaDepositTx instead DepositTx |
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.
Suddenly I had this thought.
Couldn't we just apply IsKromaDepositTx to encodeTyped paired with the decodeTyped function and not have to put this code in?
// [Kroma: START] | ||
Gas: 500_000, | ||
// IsSystemTransaction: false, | ||
// [Kroma: END] |
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.
Can we revert this gas back to 375_000, since ecotone fork is now successfully done?
To reduce code diffs with optimism, separate DepositTx into a OP version and Kroma version, and set suggestedFeeRecipient for payload attributes
This PR should be merged after #390 is merged.