hirosystems / clarinet

Write, test and deploy high-quality smart contracts to the Stacks blockchain and Bitcoin.
https://hiro.so/clarinet
GNU General Public License v3.0
307 stars 141 forks source link

Speed-up devnet initializations #225

Closed lgalabru closed 2 years ago

lgalabru commented 2 years ago

clarinet integrate and Devnets in general takes 3 to 5m to spin up. Looking at all the things being done under the hood, it's acceptable but we could deliver a better / faster experience which would result in more productivity. Assuming developers are not customizing the devnet miner private keys (both bitcoin and stacks), when producing the bitcoin and stacks nodes docker images, we could warmup these 2 chains locally:

We could then include an archive of these 2 states in the containers before publishing these images, and have the Devnet orchestrator use these chainstates when a Devnet is being spawed. This approach could shave 2 to 3m from the boot sequence.

lgalabru commented 2 years ago

Addressed in v0.28.0