Keep Monero scan progress across app restarts
This commit is contained in:
@@ -158,6 +158,11 @@ final class MoneroService {
|
||||
_ = try? await invoke(["op": "closeWallet"])
|
||||
}
|
||||
|
||||
/// Writes the wallet file, which is how scan progress survives a restart.
|
||||
func save() async {
|
||||
_ = try? await invoke(["op": "saveWallet"])
|
||||
}
|
||||
|
||||
func seed() async throws -> String {
|
||||
let response = try await invoke(["op": "getSeed"])
|
||||
return response["mnemonic"] as? String ?? ""
|
||||
|
||||
Reference in New Issue
Block a user