Kick off full rescan if tx file is missing.
This commit is contained in:
parent
fc2e313a39
commit
6805d7a7a1
1 changed files with 1 additions and 0 deletions
1
cmd.go
1
cmd.go
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue