Skip to content

Fix off-by-one issues with stack limit checking, and make the stack limit configurable - #1372

Open
Robotgiggle wants to merge 6 commits into
mainfrom
fix-stack-cap
Open

Robotgiggle wants to merge 6 commits into
mainfrom
fix-stack-cap

Conversation

@Robotgiggle

@Robotgiggle Robotgiggle commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

Resolves #740, and adds a config option to control the max stack size.

Note that the startingCount parameter for isTooLargeToSerialize (which seems to have been designed for checking list size and including the list itself) was never actually being used for that since list size is already handled by ListIota.size() and ListIota.serialize() doesn't even call isTooLargeToSerialize. Consequently, I removed that feature entirely, and isTooLargeToSerialize now always starts at 0.

@github-project-automation github-project-automation Bot moved this to 📋 Backlog in Hex Casting Nov 23, 2026
@Robotgiggle Robotgiggle added enhancement New feature or request 1.20 labels Nov 23, 2026
},
maxStackSize: {
"": "Max Stack Size",
"@Tooltip": "The maximum number of iotas that can exist on the stack at once.",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

, including iotas within lists and continuations,?

@Robotgiggle Robotgiggle Nov 23, 2026 •

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Continuation iotas currently don't count their contents, since #806 hasn't been merged yet. Good call for lists though - I added a line mentioning how they work.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

1.20 enhancement New feature or request

Projects

Status: 📋 Backlog

Development

Successfully merging this pull request may close these issues.

Stack/serialization limit is weirdly enforced

2 participants