namada
namada copied to clipboard
[draft] Modify the funds of an account in-place
Describe your changes
Implement a hard-forking util to modify the funds of a given account in-place (i.e. directly writing to RocksDB).
The current flow is something like:
- Stop the ledger at height $H$.
- Run the
set-fundsCLI util. - Start the ledger with the env var
NAMADA_INITIAL_HEIGHTset to $H+1$. - To confirm that the hard-fork worked as expected, kill the ledger, unset
NAMADA_INITIAL_HEIGHTand run the ledger once more.
TODO
- Write e2e test to test this flow with a full node also doing the hard-fork.
- Open PR replacing
set-fundswith amigratesubcmd that does nothing, except printing instructions on how to hard-fork. Must still keep the migrations specific logic though (e.g.InitChainandInfohacks).
Indicate on which release or other PRs this topic is based on
v0.24.1
Checklist before merging to draft
- [ ] I have added a changelog
- [x] Git history is in acceptable state