Skip to content

Commit

Permalink
Fix watching only wallets
Browse files Browse the repository at this point in the history
A bug where the password was prompted for on a new watching only
wallet start up caused the watching only wallet to never sync.
Now the password check is skipped. Fixes #148.
  • Loading branch information
cjepson committed Apr 6, 2016
1 parent 29efe24 commit 93eaee4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions dcrwallet.go
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,11 @@ func walletMain() error {
func startPromptPass(w *wallet.Wallet) {
promptPass := cfg.PromptPass

// Watching only wallets never require a password.
if w.Manager.WatchingOnly() {
return
}

// The wallet is totally desynced, so we need to resync accounts.
// Prompt for the password. Then, set the flag it wallet so it
// knows which address functions to call when resyncing.
Expand Down

0 comments on commit 93eaee4

Please sign in to comment.