When we wrote the emissions module we neglected to actually write full initGenesis and exportGenesis functions for it, opting instead to only export and initialize the core team addresses and the module params. Well in the case of a hard fork the system will be unable to initialize with any state since we never saved it anywhere. Additionally this gives us a useful function to entirely dump a nodes state, should we ever decide we need to.
Testing and Verifying
This change added tests to cover being able to import the state we exported.
Documentation and Release Note
There are no documentation relevant implications for this PR
What is the purpose of the change
When we wrote the emissions module we neglected to actually write full
initGenesis
andexportGenesis
functions for it, opting instead to only export and initialize the core team addresses and the module params. Well in the case of a hard fork the system will be unable to initialize with any state since we never saved it anywhere. Additionally this gives us a useful function to entirely dump a nodes state, should we ever decide we need to.Testing and Verifying
This change added tests to cover being able to import the state we exported.
Documentation and Release Note
There are no documentation relevant implications for this PR