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
what's a better model? broadcasting the state diff after an update with a proof, or keeping with the transaction execution model.
The state diff would mean you don't have to re-execute the transaction on your end, you just apply the diff on ideally, a CRDT tree representing the contract state (#186)
The downside though, I think. Is there's a chance the weight of the state diff might be much, much more than just the state transition.
#199 exists as a model for keeping the state transition small, can't say the same for the state diff. Worth thinking about.
And with regards to non-determinism, this means we don't have the issue highlighted in #271 since you adopt the state instead of recomputing on non-deterministic data.
This discussion was converted from issue #272 on July 01, 2024 12:12.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
At the moment of writing we're broadcasting transactions and hoping for eventual state equivalence on N peers just from that transaction.
Factoring local non-determinism due to #190, the question arises of:
what's a better model? broadcasting the state diff after an update with a proof, or keeping with the transaction execution model.
The state diff would mean you don't have to re-execute the transaction on your end, you just apply the diff on ideally, a CRDT tree representing the contract state (#186)
The downside though, I think. Is there's a chance the weight of the state diff might be much, much more than just the state transition.
#199 exists as a model for keeping the state transition small, can't say the same for the state diff. Worth thinking about.
And with regards to non-determinism, this means we don't have the issue highlighted in #271 since you adopt the state instead of recomputing on non-deterministic data.
Beta Was this translation helpful? Give feedback.
All reactions