import/export for the API event-replay functionality
changing names from stacks-node to stacks-blockchain to reflect source repo/image names
On sync from genesis, event-replay file is created by default.
To export the data, you can use the new arg export: ./manage.sh mainnet export and the stacks-blockchain-api will run the export function to create the file from existing postgres data.
to import the events from this file: ./manage.sh mainnet import which will wipe the db, then recreate the tables/rows etc using the event replay file.
both operations are singular - once they're done, the process ends and all services need to be restarted (not automatic).
finally, the names of the services have been altered to reflect the git repo names: stacks-node -> stacks-blockchain
stacks-node
tostacks-blockchain
to reflect source repo/image namesOn sync from genesis, event-replay file is created by default. To export the data, you can use the new arg
export
:./manage.sh mainnet export
and the stacks-blockchain-api will run the export function to create the file from existing postgres data.to import the events from this file:
./manage.sh mainnet import
which will wipe the db, then recreate the tables/rows etc using the event replay file.both operations are singular - once they're done, the process ends and all services need to be restarted (not automatic).
finally, the names of the services have been altered to reflect the git repo names:
stacks-node
->stacks-blockchain