0xMiden / 0xMiden/rust-sdk

Sync makes unnecesary storage and vault sync

未关闭
#2,217 0 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看
enhancement
主要语言
Rust
星标
78
派生
129
平均合并
4 天 11 小时
30 天内合并 PR
52

描述

The sync should handle vault and storage-map oversize independently. Today any oversize flag routes the whole account through the incremental delta path, which always fetches both `sync_storage_maps` and `sync_account_vault`, even if not needed.

https://github.com/0xMiden/miden-client/blob/0113b1cd88e3fd88eab46e26f326df92f7426728/crates/rust-client/src/sync/state_sync.rs#L676-L682

贡献指南

打开贡献指南

调研方向

该 issue 指向 crates/rust-client/src/sync/state_sync.rs 中的第 676-682 行。首先阅读这些行周围的同步逻辑,以了解 oversize 标志如何触发增量 delta 路径。检查 sync_storage_maps 和 sync_account_vault 函数,以了解何时需要每个函数。修复方法是将这些标志解耦,以便只运行必要的同步。运行现有的同步测试以验证更改不会破坏任何功能。

由索引模型根据 Issue 内容生成。

评估

领域
backend
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
冷清
描述清晰度
描述清楚
新手友好度
65/100

把新 issue 发到你的邮箱

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