-
Notifications
You must be signed in to change notification settings - Fork 165
[mesa] compat: transaction limit constants update #2647
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
Conversation
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.
Actual changes are in this file
| let { eventElements } = getEvents(accountUpdates); | ||
| const segments = accountUpdates.length; | ||
|
|
||
| let isWithinCostLimit = totalTimeRequired < TransactionCost.COST_LIMIT; | ||
| let isWithinSegmentLimit = segments <= TransactionLimits.MAX_ZKAPP_SEGMENT_PER_TRANSACTION; |
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 I get a double check to make sure this is the right value for segments? Do I need to recurse into the accountUpdates or check their contents?
src/lib/mina/v1/constants.ts
Outdated
| export const MAX_EVENT_ELEMENTS = 100 as const; | ||
| export const MAX_ZKAPP_SEGMENT_PER_TRANSACTION = 16; | ||
| export const MAX_ACTION_ELEMENTS = 1024 as const; | ||
| export const MAX_EVENT_ELEMENTS = 1024 as const; |
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.
note that this is a different MIP
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.
reverted these changes for scoping reasons
4c16b05 to
03030b1
Compare
|
note: we are on a broken branch, ignore CI for now, we are making incremental upgrades to support |
Bringing constants in our mirrored logic up-to-date with mesa: https://github.com/MinaProtocol/mina/pull/17386/files#diff-e9551c7ce072e32a4b8f325f3f2fb913ecd85d80b3dc6905cab71815fb2f4327
Reference PR above, constants changed similarly here.
closes #2636