I am using Kadena's devnet for integration testing. Unfortunately, every time I start up devnet it begins from scratch, with no history, and it takes a long time (more than an hour) to become usable. As described in the README:
If you are starting from a fresh database, you may wish to wait for the block height of each chain to pass the latest feature fork for devnet. As of 2.15, this is a height of 165. It takes an hour or so to reach this from scratch.
This sounds like I can avoid my issue with long startup times by beginning from an already-populated database. The database is deleted every time docker compose
is terminated, but the README states that this can be avoided with a devnet.yaml
file:
Node restarts without deleting the database can be performed by defining nodes in devnet.yaml that store the database on a named value or on the host.
However, there is no example devnet.yaml
file in the devnet repository, and I don't know what I should write in this file to make snapshots appropriately. How do I snapshot the database using a devnet.yaml
file so that I can restart devnet at a block height of at least 165?