Repository navigation
Release v0.8.4: bounded parse nesting, fixes a remote crash - #31
Merged
Merged
Conversation
…nd ErgoTree framing Contract text for the ergo-lib parse rules the next sigma-rust pin brings: sigmastate's reader nesting level (MaxTreeDepth 110) on a fresh reader state per transaction, the temporary type-nesting bound as a known divergence (the JVM has none), and the ErgoTree read window, declared size, root type and pre-v3 function type code. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…nsaction reader state, ErgoTree framing) eni bf4d6943..0bd7199f brings: - sigmastate's MaxTreeDepth (110) reader level on values, data and SigmaBooleans - a fresh reader state (level, constant and ValDef stores) for every transaction - a temporary type-nesting bound of 110, eni-only, pending the Ergo team's rule - ErgoTree parsing on the box's reader, within its own 4096-byte window, and unsized non-SigmaProp roots rejected - type code 112 before ErgoTree v3 as an unknown type code instead of a panic Before this, a transaction of about 2 KB with deeply nested values aborted the process on stack overflow. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The unit passed --node-url http://127.0.0.1:9052 (the testnet API port), which overrides both /etc/ergo-node/indexer.toml and the indexer's built-in default (http://127.0.0.1:9053, mainnet). On a mainnet node the indexer could never reach the node. Without the flag, the config file's [node].url or the correct default applies. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> (cherry picked from commit ddb2c3ad9c97d95b6cb5dc316042e3fd0fc16ebb)
….1.9 The addons were on f76db922, whose type parser panics on type code 112 before ErgoTree v3. The node now accepts a size-flagged script carrying it (degraded to unparsed, as in the JVM), and the indexer parses every output script to derive its address. Same pin as the node; lockfiles re-synced (9 source swaps each, plus the member version). Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pins sigma-rust eni 0bd7199f. A transaction of about 2 KB from any peer could abort the node, because nested values and types were parsed recursively with no depth limit. Values now follow the JVM's MaxTreeDepth (110). Types get the same bound as a temporary divergence, since the JVM defines none. Also included:
These are upstream as ergoplatform/sigma-rust #927, except the type bound. The addons move to the same pin (indexer 0.2.9, fastsync 0.1.9), and the indexer unit no longer points at the testnet port.
Checked:
🤖 Generated with Claude Code