Function jormungandr::bootstrap
source · pub(crate) fn bootstrap(
initialized_node: InitializedNode
) -> Result<BootstrappedNode, Error>
Expand description
Bootstrap phase
done at every startup: we need to bootstrap from whatever local state (including nothing) to the latest network state (or close to latest). until this happen, we don’t participate in the network (no block creation) and our network connection(s) is only use to download data.
Various aspects to do, similar to hermes:
- download all the existing blocks
- verify all the downloaded blocks
- network / peer discoveries (?)