Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Limit nested structures in wasm #4036

Merged
merged 3 commits into from
Jun 11, 2018
Merged

Limit nested structures in wasm #4036

merged 3 commits into from
Jun 11, 2018

Conversation

larryk85
Copy link
Contributor

This PR limits the nesting of block type structures (loop, block, if) to a depth of 1024.

@larryk85 larryk85 requested a review from spoonincode June 11, 2018 21:00
@abourget
Copy link
Contributor

Can this fork if not applied by everyone? When applied locally with the 1024 limit, could it refuse blocks?

@arhag
Copy link
Contributor

arhag commented Jun 13, 2018

@abourget:

No, the check only applies when producing a block not validating. So if a producer includes a transaction that violates this subjective nesting limit, the other nodes will be forced to accept it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants