You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(runtime): clamp protocol version for view calls on archival nodes (#15603)
- Archival nodes can serve view call queries against blocks from
protocol versions older than `MIN_SUPPORTED_PROTOCOL_VERSION`, where the
runtime config references VM backends (Wasmer0, Wasmer2) that have been
removed from the binary, causing a panic
- Clamp the protocol version to `MIN_SUPPORTED_PROTOCOL_VERSION` in
`NightshadeRuntime` before passing it to the state viewer
- Add `clamp_to_supported_protocol_version` and
`assert_supported_protocol_version` helpers in
`core/primitives-core/src/version.rs`
- Add precondition asserts in `TrieViewer::call_function` and
`TrieViewer::view_account_contract_code`
See
[zulip](https://near.zulipchat.com/#narrow/channel/533300-releases.2F2.2E11/topic/Mainnet.20archival.20node.20crashes.20on.20some.20RPC.20query/with/585060345)
for more context.
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
0 commit comments