Gets the state from a bootstrap server (internal private function)
needs to be CANCELLABLE
Ids for the reconnect ask: all finals if under the cap, otherwise the newest max_ids by slot.
Checks the network restart metadata announced by a bootstrap server.
Uses the cond-var pattern to handle sig-int cancellation.
Make sure that the passed in interrupted shares its Arc
with a sig-int handler setup.
Computes the slot range of the last network shutdown, as startup does: from the slot right
after the last one executed before the downtime, to the slot right before the restart.
This function will send the starting point to receive a stream of the ledger and will receive and process each part until receive a BootstrapServerMessage::FinalStateFinished message from the server.
next_bootstrap_message passed as parameter must be BootstrapClientMessage::AskFinalStatePart enum variant.
next_bootstrap_message will be updated after receiving each part so that in case of connection lost we can restart from the last message we processed.