0xMiden / 0xMiden/rust-sdk

Blockchain reorg safety

Aberta
#2,105 0 comentários 0 reações 0 responsáveis Ver no GitHub
question
Linguagem predominante
Rust
Estrelas
78
Forks
129
Merge médio
4d 14h
PRs com merge (30d)
52

Descrição

`Client::sync_state` currently hardcodes `SyncTarget::CommittedChainTip`, even though the RPC layer and node already support `CommittedChainTip`, `ProvenChainTip`, and `BlockNumber` via the existing `SyncTarget` enum.
We could consider exposing that as an optional parameter on `Client::sync_state`, thread it through `StateSync::sync_state` into `sync_chain_mmr`, reexport the enum, and maybe mirror the parameter in the CLI and `WebClient` bindings. I don

This does not add reorg safety, and maybe this prompts for discussion/features around that: The client still has no detection or rollback for network-level chain rewrites. The existing account rollback logic only handles locally stale pending transactions. A user choosing `ProvenChainTip` gets a more conservative view, but still fully trusts the node, so `proven` is not a stronger trust guarantee.

Guia de contribuição

Abrir o guia de contribuição

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.