aboutsummaryrefslogtreecommitdiffstats
path: root/accounts/accounts.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2017-08-09 17:51:16 +0800
committerPéter Szilágyi <peterke@gmail.com>2017-08-09 18:26:07 +0800
commit5d9ac49c7e6027c60998a56287dbb3e407011c9b (patch)
tree325712b0955076ba81a91031e84f25dee88727b2 /accounts/accounts.go
parentdb568a61e2a98880ab308bf2224aa34073dc7f39 (diff)
downloaddexon-5d9ac49c7e6027c60998a56287dbb3e407011c9b.tar
dexon-5d9ac49c7e6027c60998a56287dbb3e407011c9b.tar.gz
dexon-5d9ac49c7e6027c60998a56287dbb3e407011c9b.tar.bz2
dexon-5d9ac49c7e6027c60998a56287dbb3e407011c9b.tar.lz
dexon-5d9ac49c7e6027c60998a56287dbb3e407011c9b.tar.xz
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.go5
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