OSDN Git Service

fix the rescan bug (#1708)
authorPaladz <yzhu101@uottawa.ca>
Thu, 18 Apr 2019 05:22:53 +0000 (13:22 +0800)
committerGitHub <noreply@github.com>
Thu, 18 Apr 2019 05:22:53 +0000 (13:22 +0800)
wallet/wallet.go

index 73cf84b..efdf32a 100644 (file)
@@ -148,6 +148,7 @@ func (w *Wallet) loadWalletInfo() error {
        }
 
        w.status.Version = currentVersion
+       w.status.WorkHash = bc.Hash{}
        block, err := w.chain.GetBlockByHeight(0)
        if err != nil {
                return err