0xMiden / 0xMiden/node

Refactor account management in ntx-builder

オープン
#2,486 コメント 2 件 リアクション 0 件 担当者 1 名 @SantiagoPittella が担当を希望しています GitHub で見る
network transactions
主要言語
Rust
スター
104
フォーク
138
平均マージ
1日 13時間
マージ済み PR(30日)
56

説明

We measured the `ntx-builder` with a large account (1M storage map entries) and realized that the current approach with the full `Account` in-memory is not scalable.

We should try an alternative, treating the native accounts the same way the foreign-account path already does which is using the store as an oracle, and the ntx-builder holds only the header state in memory. It requires some changes to the database, but overall reduces the amount of code. In memory we would have a PartialAccount which isn't a problem long term. This approach also prevents the divergence that we had in the past of the in memory account not matching the node one, since the store is only updated by proven blocks and all the state is read from there.

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。