You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
AskAlexSharov
changed the title
consolidate Accumulator and StateDiff in-memory representation - no reason to store similar things twice in ram.
consolidate Accumulator, StateDiff, commitment.Updates in-memory representation - no reason to store similar things twice in ram.
Dec 2, 2024
Btw when commitment mode is ModeDirect, commitment.Updates does not hold recent state updates, it fetches them from domains and fills Updates structure instead.
Since we can merge Updates, could add to this step generating of binary encoding of update or keep list of singular updates which, if applied one by one will provide same commitment.Update as we have in latest state.
making Updates a source of truth could have other benefits.
StateStream: it must use Erigon3 primitives (domains).
Seems it's time to introduce
StateChanges
type for giventx
exec. Reasons:doCallMany
usingstateCache.Clone()
trick to produceStateDiff
typeAccumulator
andStateStream
do have own format ofStateChanges
StateChangeSet
- which we using for Domain unwind - using own format.New type - maybe must use
E3
primitives (like "Domain"). I'm not sure - because maybe it must be Ethereum-specific instead of Erigon3-specific.The text was updated successfully, but these errors were encountered: