Skip to content
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

enforce protocol limits on account updates and events #620

Merged
merged 10 commits into from
Dec 2, 2022
Merged

Conversation

Trivo25
Copy link
Member

@Trivo25 Trivo25 commented Dec 1, 2022

enforces limits on the layout of account updates, sequence events and events, as defined on the protocol side

TODO: fix token tests, since they exceed the newly defined limits

closes #276

Copy link
Collaborator

@mitschabaude mitschabaude left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Feel free to ignore all the nits, but would be nice to add a little test for the filterGroup logic

Also, re breaking tests, I would suggest adding a mechanism - maybe optional argument to LocalBlockchain? - to skip the limits check

const proofCost = 10.26;
const signedPairCost = 10.08;
const signedSingleCost = 9.14;
const costLimit = 69.45;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should eventually add this to auto-generation via the snarky_js_constants.ml mechanism, so it'd guaranteed to stay in sync. It's not urgent though and can be an issue for later

src/lib/mina.ts Outdated Show resolved Hide resolved
src/lib/mina.ts Outdated Show resolved Hide resolved
src/lib/mina.ts Outdated Show resolved Hide resolved
src/lib/mina.ts Outdated Show resolved Hide resolved
src/lib/mina.ts Outdated Show resolved Hide resolved
Copy link
Collaborator

@mitschabaude mitschabaude left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👌🏻

@Trivo25 Trivo25 merged commit 0969069 into main Dec 2, 2022
@Trivo25 Trivo25 deleted the party-limit branch December 2, 2022 13:34
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.

Enforce limits on # of parties, events, & sequence events to match those defined by the protocol
2 participants