0xMiden / 0xMiden/protocol

Resolve forks created by different transactions updating the same account

Offen
#1,139 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
kernels
Vorherrschende Sprache
Rust
Sterne
132
Forks
167
Ø Merge
1 T. 23 Std.
Gemergte PRs (30 T.)
110

Beschreibung

Resolve forks created by different transactions updating the same account.

If we have two batches that update the same account from the same initial state `A` but one batch updates it to `B` and another updates it to `C`, then this is a fork in the account state.
Currently, the block kernel errors in this scenario but eventually we should resolve the conflict and choose one of the transaction chains that is accepted as the new state.

Reference:
> At some point in the future, we may need to resolve such conflicts differently. That is, if there is a conflict, we'd drop one of the transaction chains (e.g., the transaction which resulted in A -> F and all of its descendants). This won't happen until we have decentralized batch production, but still let's create an issue for this.

From: https://github.com/0xPolygonMiden/miden-base/pull/1123#discussion_r1950076744

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.