0xMiden / 0xMiden/miden-vm

`PartialMmr` panics during `Client::sync_state()`(`miden-client`)

未关闭
#3,501 4 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
question
主要语言
Rust
星标
772
派生
352
平均合并
1 天 12 小时
30 天内合并 PR
93

描述

### Packages versions

miden-crypto 0.18.4 (pulled in via `miden-client` 0.12.3)

### Bug description

thread 'main' panicked at miden-crypto/src/merkle/mmr/partial.rs:396:9:
if there is an odd element, a merge is required

### How can this be reproduced?

1. My app invokes `Client::sync_state()` to refresh local state
2. The client has an existing partial MMR cache on disk.
3. Sync pulls the latest delta from a remote node and applies it via `PartialMmr::apply()`.
4. The sync path panics inside `miden-crypto`

This happens immediately after `Client::sync_state()` starts processing the returned MMR delta, so the downstream code never sees a recoverable error

### Relevant log output

```shell
thread 'main' panicked at miden-crypto/src/merkle/mmr/partial.rs:396:9:
if there is an odd element, a merge is required
```

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。