Skip to content

Conversation

@bleepbloopsify
Copy link
Contributor

@bleepbloopsify bleepbloopsify commented Nov 18, 2025

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

@bleepbloopsify bleepbloopsify requested review from a team as code owners November 18, 2025 20:14
@bleepbloopsify bleepbloopsify changed the base branch from main to develop-3.0 November 18, 2025 20:14
Copy link
Contributor Author

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

Comment on lines +63 to +66
let { eventElements } = getEvents(accountUpdates);
const segments = accountUpdates.length;

let isWithinCostLimit = totalTimeRequired < TransactionCost.COST_LIMIT;
let isWithinSegmentLimit = segments <= TransactionLimits.MAX_ZKAPP_SEGMENT_PER_TRANSACTION;
Copy link
Contributor Author

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?

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;
Copy link
Member

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

Copy link
Contributor Author

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

@bleepbloopsify bleepbloopsify force-pushed the leon/3.0/account-update-expansion branch from 4c16b05 to 03030b1 Compare November 24, 2025 16:59
@bleepbloopsify
Copy link
Contributor Author

note: we are on a broken branch, ignore CI for now, we are making incremental upgrades to support mesa

@bleepbloopsify bleepbloopsify changed the title chore: transaction limit constants update [mesa] compat: transaction limit constants update Nov 25, 2025
@bleepbloopsify bleepbloopsify merged commit c7f60db into develop-3.0 Dec 1, 2025
8 of 14 checks passed
@bleepbloopsify bleepbloopsify deleted the leon/3.0/account-update-expansion branch December 1, 2025 14:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants