Enforce 64-instruction transaction limit across kit#1157
Enforce 64-instruction transaction limit across kit#1157rajgoesout wants to merge 1 commit intoanza-xyz:mainfrom
Conversation
- add instruction-limit types/constants and new error code/message/context - enforce limit in message append/prepend, compilation, and instruction planning - propagate instruction-limit typing through transactions, signers, and react - add unit/typetests for message/transaction limits and sendable checks Closes anza-xyz#1102
🦋 Changeset detectedLatest commit: 12dcf84 The changes in this PR will be included in the next version bump. This PR includes changesets to release 43 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
BundleMonFiles updated (19)
Unchanged files (117)
Total files change +2.02KB +0.52% Final result: ✅ View report in BundleMon website ➡️ |
mcintyre94
left a comment
There was a problem hiding this comment.
Thanks a lot for picking this up and working on it! I wasn't expecting this to be picked up so quickly after I created the issue, and I need to think a bit more about the design and complexity here. We don't need to rush this because it isn't critical until we have v1 transactions with the larger size limit. And as-is this would be a major bump which I don't want to take lightly.
I'm going to put this PR in draft so we don't accidentally merge it for now.
|
Superseded by #1496 - so I'll close this, but thankyou! |
|
Because there has been no activity on this PR for 14 days since it was merged, it has been automatically locked. Please open a new issue if it requires a follow up. |
Problem
SIMD‑0296 raises the transaction byte limit to 4096, but the instruction count cap stays at 64.
Kit currently enforces size, not instruction count, so transactions could exceed 64 instructions once the size limit increases.
We need to enforce the 64‑instruction limit when building/compiling messages and when planning transactions.
Summary of Changes
Closes #1102