stacks-network / stacks-blockchain-docker

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

feat: skip downloading files if they already exist #121

Open pradel opened 3 weeks ago

pradel commented 3 weeks ago

Description

During the seed process, something might go wrong when you insert things in the DB so you want to retry the process. Currently you will always redownload the required files even tho they are on your system. To speed up things we could download these files only if they don't exist. Wdyt of this approach @wileyj ?

Type of Change

Does this introduce a breaking change?

I don't think so

Are documentation updates required?

No

CLAassistant commented 3 weeks ago

CLA assistant check
All committers have signed the CLA.

wileyj commented 3 weeks ago

rather than not download the file, i think it would be better to check the checksum of local vs remote before downloading. edit: typed "delete" when i meant "download"