-
Notifications
You must be signed in to change notification settings - Fork 278
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
Remove the Minter
struct from genesis
#2067
Comments
I think we should preserve |
I agree, but concerning this:
Even if we remove those fields from the struct, or even remove the whole |
Closes #2067 Before this PR, genesis.json looked like: ```json "mint": { "minter": { "inflation_rate": "0.080000000000000000", "annual_provisions": "0.000000000000000000", "previous_block_time": null, "bond_denom": "utia" } }, ``` After this PR, genesis.json should be: ```json "mint": { "bond_denom": "utia" }, ```
Closes #2067 Before this PR, genesis.json looked like: ```json "mint": { "minter": { "inflation_rate": "0.080000000000000000", "annual_provisions": "0.000000000000000000", "previous_block_time": null, "bond_denom": "utia" } }, ``` After this PR, genesis.json should be: ```json "mint": { "bond_denom": "utia" }, ``` (cherry picked from commit 92be1fc)
Closes celestiaorg/celestia-app#2067 Before this PR, genesis.json looked like: ```json "mint": { "minter": { "inflation_rate": "0.080000000000000000", "annual_provisions": "0.000000000000000000", "previous_block_time": null, "bond_denom": "utia" } }, ``` After this PR, genesis.json should be: ```json "mint": { "bond_denom": "utia" }, ```
Context
celestia-app/x/mint/keeper/genesis.go
Lines 8 to 16 in 60f9328
Problem
Currently, the minter struct is exposed in the genesis file:
None of these fields is not used in the app:
inflation_rate
: Even if a value is set at this level, the inflation rates are hard-coded and these values are not used:celestia-app/x/mint/abci.go
Line 29 in 60f9328
annual_provisions
: Also calculated inBeginBlocker
in the first block:celestia-app/x/mint/abci.go
Line 42 in 60f9328
previous_block_time
: Already not specified in genesisbond_denom
: This parameter is not expected to change at allProposal
Remove the
Minter
struct from genesis.We could also remove the protobuf definition (To be confirmed) as the
Minter
struct will only be stored in state, and not written to genesis, or used in tx/queriesThe text was updated successfully, but these errors were encountered: