It can take a long time to pull down and populate the consensus lmdb from S3. This adds an option to the container entrypoint scripts to just run ledger-from-archive in a loop and populate the local db without bringing consensus online.
in standalone container: set MC_LEDGER_FROM_ARCHIVE_ONLY to any value
or
in helm: --set node.config.ledgerFromArchiveOnly="true"
add MC_LEDGER_FROM_ARCHIVE_ONLY option
remove old ledger-distribution zero,next,last logic
Motivation
It can take a long time to pull down and populate the consensus lmdb from S3. This adds an option to the container entrypoint scripts to just run ledger-from-archive in a loop and populate the local db without bringing consensus online.
in standalone container: set
MC_LEDGER_FROM_ARCHIVE_ONLY
to any value or in helm:--set node.config.ledgerFromArchiveOnly="true"
zero,next,last
logic