0g-chain/app
Draco 43be3815cc
feat: disable inflation upgrade logic (#1706)
* feat: disable inflation upgrade logic

* improve disable inflation comments

* add upgrade tests

* update changelog

* split disable inflation upgrade and the upgrade check

* remove pay rewards logic

* clean up incentives test

* add abci test

* refactor upgradeTime and blockTime check

* fix abci test

* fix wrong pr in changelog

* refactor disable inflation tests, behavior, and implementation
  - Unit tests are now shared between keeper and abci begin blocker
    since behavior is 100% the same
  - ABCI is unaware of keeper initial keeper logic branch (keeper
    methods required to be called in certain order by begin blocker)
  - Behavior of zero time is changed -- this now doesn't run for the
    zero time.  This is more ideal for new chains (genesis should set
    all correct state instead of relying on inflation disable logic),
    and allows for a simpler implementation.
  - Begin blocker now panics if parameters are not in state

* remove previous tests and implementation

* remove previous block time keeper state -- not needed for inflation
disalbing

* move inflation disabling to private method and add more comments

* remove unused key

* use correct spelling for idempotence

---------

Co-authored-by: Nick DeLuca <nickdeluca08@gmail.com>
2023-10-02 13:10:22 -07:00
..
ante feat(evmutil): add allow list for evm-convertible sdk denoms (#1590) 2023-05-19 16:01:46 -07:00
params Upgrade to sdk v0.44.5 and add IBC (#1106) 2022-01-07 17:39:27 -07:00
_sim_test.go gofumpt - apply format changes for readability and consistency (#1248) 2022-05-09 11:37:36 -07:00
_simulate_tx_test.go Update deprecated Cosmos methods (#1530) 2023-04-05 16:21:59 -07:00
_simulate_tx.go Upgrade to sdk v0.44.5 and add IBC (#1106) 2022-01-07 17:39:27 -07:00
app_test.go fix(evmutil): register MsgConvertCosmosCoinToERC20 on amino (#1599) 2023-05-26 19:06:26 -07:00
app.go feat: disable inflation upgrade logic (#1706) 2023-10-02 13:10:22 -07:00
config.go Upgrade to sdk v0.44.5 and add IBC (#1106) 2022-01-07 17:39:27 -07:00
encoding.go feat: upgrade to Cosmos v0.46 (#1477) 2023-04-03 20:08:45 -04:00
export.go gofumpt - apply format changes for readability and consistency (#1248) 2022-05-09 11:37:36 -07:00
genesis.go Upgrade to sdk v0.44.5 and add IBC (#1106) 2022-01-07 17:39:27 -07:00
tally_handler_test.go Update deprecated Cosmos methods (#1530) 2023-04-05 16:21:59 -07:00
tally_handler.go Update deprecated Cosmos methods (#1530) 2023-04-05 16:21:59 -07:00
test_builder.go gofumpt - apply format changes for readability and consistency (#1248) 2022-05-09 11:37:36 -07:00
test_common.go feat: disable inflation upgrade logic (#1706) 2023-10-02 13:10:22 -07:00
upgrades.go Remove x/bridge & setup migration skeletion (#1295) 2022-09-01 16:20:37 -04:00