stacks-network / stacks-blockchain-docker

Stacks-blockchain with API using docker compose
GNU General Public License v3.0
27 stars 37 forks source link

Adding event-replay logic/changing service names #51

Closed wileyj closed 2 years ago

wileyj commented 2 years ago

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