-
Notifications
You must be signed in to change notification settings - Fork 285
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
chore: share state manager and side effect tracer for all enqueued calls in tx #9565
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -182,7 +182,7 @@ global DEPLOYER_CONTRACT_INSTANCE_DEPLOYED_MAGIC_VALUE = | |
|
||
// GAS DEFAULTS | ||
global DEFAULT_GAS_LIMIT: u32 = 1_000_000_000; | ||
global DEFAULT_TEARDOWN_GAS_LIMIT: u32 = 100_000_000; | ||
global DEFAULT_TEARDOWN_GAS_LIMIT: u32 = 12_000_000; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There is no reason the teardown limit should be higher than the enqueued call limit There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It maybe doesn't make sense to change this here, but I did so while debugging a test failure and thought... why change it back? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. then maybe you can move the line past MAX_L2_GAS_PER_ENQUEUED_CALL and do
? |
||
global MAX_L2_GAS_PER_ENQUEUED_CALL: u32 = 12_000_000; | ||
global DEFAULT_MAX_FEE_PER_GAS: Field = 10; | ||
global DEFAULT_INCLUSION_FEE: Field = 0; | ||
|
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.
This constraint was failing because when an enqueued call had no side effects, it would start with
start == prev.end
. I was trying to figure out the proper way to modify this constraint or modify the AVM/tracing when I realized.... We're going to delete this anyway since side effect counters shouldn't be a critical part of the protocol with everything in the AVM.