-
Notifications
You must be signed in to change notification settings - Fork 226
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
Get the governance proposals #28
Comments
The current version is getting all proposals from the rest server There are a few points to consider.
|
@kwunyeung About tally results, I've separated them into another issue (#29). About point (1) I don't see the problem. If the chain restarts, won't messages be persisted? |
For (1), won't there are types.genesisState that stored the proposals at the start of the chain? Or you are saying a different thing? |
For (1), if the chain restart, all txs are not kept and the messages are all gone. If we only read from the REST endpoints, it will have the proposal information and the tally result. You can see that the first few proposals on Cosmos Hub don't have proposal proposers as they can't be retrieved after the upgrade. https://cosmos.bigdipper.live/proposals/5 Hm... I'm not sure if we really need to consider this. This is the way how the SDK is working. Or we should create an issue on SDK asking for a change in the module. Looks like the module should save the proposer in the state. |
@kwunyeung I honestly think this shouldn't be a matter of DBJuno or any explorer at all. Explorers should display the data that can be found on-chain as well. If the chain does not have some data and you display it anyway, you could be accused of manipulating the data. For this reason, I think it's better to ask the SDK team to properly keep the past proposals, instead of doing that work by ourselves. |
Closed with #33 |
Feature description
We need to get the created governance proposals.
Implementation proposal
To implement this, I think we can simply create a message handler that handles
MsgSubmitProposal
messages. Such kind of messages should contain all the information that is worth saving about a proposal.@kwunyeung do you think that would be sufficient?
The text was updated successfully, but these errors were encountered: