multi: add a rpc endpoint to track the recovery process

This commit is contained in:
yyforyongyu committed 2020-06-25 15:49:54 +08:00
1 parent c1ef5bb908
commit 987edc9d81
17 files changed
+1182 -613

No files matched your search

+5
View File
@@ -285,6 +285,11 @@ type WalletController interface {
// known to the wallet, expressed in Unix epoch time
IsSynced() (bool, int64, error)
// GetRecoveryInfo returns a boolean indicating whether the wallet is
// started in recovery mode. It also returns a float64 indicating the
// recovery progress made so far.
GetRecoveryInfo() (bool, float64, error)
// Start initializes the wallet, making any necessary connections,
// starting up required goroutines etc.
Start() error