pub fn recover_lightning_node(
backend_url: String,
seed: Vec<u8>,
local_persistence_path: String,
file_logging_level: Option<Level>,
allow_external_recovery: bool,
) -> Result<()>
Expand description
Performs a recovery procedure by fetching necessary data from remote storage. It should and can only be called on a fresh install of the app, if the user wants to recover a previously created wallet.
Parameters:
backend_url
seed
- the seed from the wallet that will be recovered.local_persistence_path
- the directory where local data will be stored.file_logging_level
- the min log level that will be logged.allow_external_recovery
- defines if recovery of external wallets is allowed.