Everywhere we have a node join a network, we currently start it with either a copy of the primary's snapshot directory (or after #7832 an empty directory) by default.
Both of these options are not quite right, although #7832 moves us closer.
What we observe is that teams running CCF generally have a snapshots folder from previous iterations of that node.
Hence we should make the following changes:
- []
join_node should replicate the snapshot directory of a random node
- []
start_in_recovery 's _add_node when passed an existing network should infer which node to start from, and reuse the ledger directories of the previous network.
Everywhere we have a node join a network, we currently start it with either a copy of the primary's snapshot directory (or after #7832 an empty directory) by default.
Both of these options are not quite right, although #7832 moves us closer.
What we observe is that teams running CCF generally have a snapshots folder from previous iterations of that node.
Hence we should make the following changes:
join_nodeshould replicate the snapshot directory of a random nodestart_in_recovery's_add_nodewhen passed an existing network should infer which node to start from, and reuse the ledger directories of the previous network.