Kick off full rescan if tx file is missing.

This commit is contained in:
Josh Rickmar 2014-02-24 16:01:03 -05:00
parent fc2e313a39
commit 6805d7a7a1

1
cmd.go
View file

@ -302,6 +302,7 @@ func OpenSavedAccount(name string, cfg *config) (*Account, error) {
// but other errors can be more important, so only return // but other errors can be more important, so only return
// this if none of the others are hit. // this if none of the others are hit.
finalErr = ErrNoTxs finalErr = ErrNoTxs
a.fullRescan = true
} else { } else {
defer txfile.Close() defer txfile.Close()
if _, err = txs.ReadFrom(txfile); err != nil { if _, err = txs.ReadFrom(txfile); err != nil {