-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
Move mainStore from baseApp to the Accounts module #925
Comments
For gov we also need Height, but the needed block height are stored in the |
Seems like we should remove it then? |
I dont think so -- afaict, we only use |
Is this the Paramstore work cc @ValarDragon? And is this still #prelaunch? |
Sounds like thats a yes. |
In my opinion, this should be done prelaunch, and is pretty independent of paramstore stuff. |
This should be done sooner than later. |
We're using the mainstore in baseapp now for max-block-gas parameter storage which is needed in baseApp... There is going to be a consistent need for baseApp to have persistent parameters aka it needs access to some kind of store - We've talked about initializing the paramsStore in baseapp, and passing it up to gaia now - At this point we wouldn't need the main store. Not sure if how this interacts with this PR |
Consensus params should definitely be tracked in the params store imo. (Or a separate consensus param store if that simplifies param change proposals communicating with tendermint) |
Yeah it should be there, it's just a larger refactor which doesn't need to be done prelaunch. Here is the tracking issue for this #2882 Until we complete 2882 We're blocked on moving the main store, hence, we should probably move this issue to - postlaunch |
Original notion was that the
main
store would store the header, but turns out we haven't actually needed it (the app gets it in BeginBlock anyways).Our light client doesnt look for headers in the state (just in the blockchain), though this could be a useful check for the causal order of a state and the blockchain that produced it.
I commented out storing the header in https://github.com/cosmos/cosmos-sdk/blob/master/baseapp/baseapp.go#L143 when I found we didn't need it, because I thought we could get the state root to stay the same across blocks with no transactions. But the new IAVL keeps the version, so the app hash changes every block, so we need to do something else about that anyways:
Should we store the header in the SDK state? Should it go in main, or in a
/headers
? Do we needmain
at all ?The text was updated successfully, but these errors were encountered: