allora-network / allora-chain

Node software to run the Allora Network
https://www.allora.network/
Apache License 2.0
77 stars 70 forks source link

Add Genesis Import / Init / Export of full emissions module state #443

Closed relyt29 closed 2 months ago

relyt29 commented 2 months ago

What is the purpose of the change

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