0xMiden / 0xMiden/rust-sdk

Roll back account states based on mempool errors

未關閉
#1,418 1 則留言 0 個 reaction 已指派 1 人 已被 @gabrielbosio 認領 在 GitHub 檢視
主要語言
Rust
星號
78
分支
129
平均合併
4 天 14 小時
30 天內合併 PR
52

描述

We currently roll back account states based on whether transactions went stale (as configured) or if we know they expired (based on whether the transaction expiration was set during execution).

With https://github.com/0xMiden/miden-client/issues/1312, at the moment of submitting new transactions, we can also catch the "account initial commitment mismatch" error and roll back the account states to the correct state commitment because we'd know the mempool has dropped a subset of the transactions that the client sent. For this though, we'd need to get structured error information rather than just an error code (ie, we'd need to extract the account state commitment from the error itself)

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。