abracadaniel / cardano-pool-docker

Docker container for setting up and running a Cardano Stake Pool
163 stars 62 forks source link

Feature: bootstrap db using latest mithril snapshot #72

Closed robinboening closed 8 months ago

robinboening commented 8 months ago

This PR adds mithril-client to the mix and introduces a new env var BOOTSTRAP_DB to be passed to the container. It is set to True by default and will cause mithril client to download the current latest snapshot to the db directory.

This should lower the initial sync time of a node to a few minutes.

BOOTSTRAP_DB will have no effect if the db folder already exists. This is protective measure for restarting containers to prevent downloading a new snapshot when the db is already up to date.