mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-05-24 01:11:25 -04:00
Try to open wallet in case generate_from_keys fails
This commit is contained in:
parent
bad6ca95e0
commit
548f057726
2 changed files with 16 additions and 4 deletions
|
@ -64,6 +64,11 @@ impl Wallet {
|
|||
Ok(())
|
||||
}
|
||||
|
||||
pub async fn open(&self, filename: &str) -> Result<()> {
|
||||
self.inner.lock().await.open_wallet(filename).await?;
|
||||
Ok(())
|
||||
}
|
||||
|
||||
/// Close the wallet and open (load) another wallet by generating it from
|
||||
/// keys. The generated wallet will remain loaded.
|
||||
pub async fn create_from_and_load(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue