amman snaspshot <label> which takes a snapshot of current known accounts and writes them to
a subdir label (or timestamp) below the configurable snapshot folder
amman account --save <label|address> which saves the respective account under
.amman/accounts to be treated as cloned from the local cluster
If { snaphsot: { load: 'label' } } is set in the config, all accounts from that
subdir are loaded.
The snapshot to be loaded can also be specified via the --load <snapshot> flag to amman start.
~## Remaining work~
Related Work
Since lots of accounts are PDAs and/or cannot be controlled without the authority present at
the time of snapshot we will need to find a way to store signers in use as well.
Unrelated Work
Some improvements to the mock storage server are included here as well.
Summary
Adds the following command to amman:
amman snaspshot <label>
which takes a snapshot of current known accounts and writes them to a subdir label (or timestamp) below the configurable snapshot folderamman account --save <label|address>
which saves the respective account under.amman/accounts
to be treated as cloned from the local clusterIf
{ snaphsot: { load: 'label' } }
is set in the config, all accounts from that subdir are loaded.The snapshot to be loaded can also be specified via the
--load <snapshot>
flag toamman start
.~## Remaining work~
Related Work
Since lots of accounts are PDAs and/or cannot be controlled without the authority present at the time of snapshot we will need to find a way to store signers in use as well.
Unrelated Work
Some improvements to the mock storage server are included here as well.