diff options
author | Péter Szilágyi <peterke@gmail.com> | 2017-08-09 17:51:16 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2017-08-09 18:26:07 +0800 |
commit | 5d9ac49c7e6027c60998a56287dbb3e407011c9b (patch) | |
tree | 325712b0955076ba81a91031e84f25dee88727b2 /accounts/accounts.go | |
parent | db568a61e2a98880ab308bf2224aa34073dc7f39 (diff) | |
download | dexon-5d9ac49c7e6027c60998a56287dbb3e407011c9b.tar.gz dexon-5d9ac49c7e6027c60998a56287dbb3e407011c9b.tar.zst dexon-5d9ac49c7e6027c60998a56287dbb3e407011c9b.zip |
accounts: refactor API for generalized USB wallets
Diffstat (limited to 'accounts/accounts.go')
-rw-r--r-- | accounts/accounts.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/accounts/accounts.go b/accounts/accounts.go index 5872bb4a3..76951e1a4 100644 --- a/accounts/accounts.go +++ b/accounts/accounts.go @@ -42,8 +42,9 @@ type Wallet interface { URL() URL // Status returns a textual status to aid the user in the current state of the - // wallet. - Status() string + // wallet. It also returns an error indicating any failure the wallet might have + // encountered. + Status() (string, error) // Open initializes access to a wallet instance. It is not meant to unlock or // decrypt account keys, rather simply to establish a connection to hardware |