-
Notifications
You must be signed in to change notification settings - Fork 686
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stateless/pure transaction processing #195
Comments
Thoughts on implementation. I suspect that one of the first things this will need is a database wrapper which keeps track of all of the parts of the state trie which get touched as part of transaction processing. I think it would be good to do this as a subclass of
|
Q1: Is the
|
My bad, anywhere you see |
This makes sense but I didn't see a question. If there is one can you clarify? |
Everything you state under this section looks good and inline with my thinking. Removing the transaction logic from the
Yes and No.
|
Everything you say here is inline with my understanding. I'm not sure if this is the right approach, but it may be useful to |
This looks like a solid approach but I'll point the following out. The |
@hwwhww I think I answered everything you asked. Please follow up if you need clarification on anything. |
close via #247 |
We need a pure function for applying transactions.
As inputs it would take:
It would output the resulting state.
Implementation is up-in-the-air but current leading idea is to process the transaction as normal, modifying the state as we go and then discarding the state changes, only returning the updated state. There is an underlying assumption that our state database engine supports lazy fetching of parts of the overall state.
Tasks
State
object #236The text was updated successfully, but these errors were encountered: