Write dirty tx and utxo files when rescans finish.

This commit is contained in:
Josh Rickmar 2014-01-10 14:53:32 -05:00
parent ebcaa95b35
commit eca8914254

View file

@ -395,6 +395,7 @@ func (a *Account) ImportPrivKey(wif string, rescan bool) error {
}
Rescan(CurrentRPCConn(), bs.Height, addrs)
a.writeDirtyToDisk()
}
return nil
}
@ -497,6 +498,7 @@ func (a *Account) RescanActiveAddresses() {
// Rescan active addresses starting at the determined block height.
Rescan(CurrentRPCConn(), beginBlock, a.ActivePaymentAddresses())
a.writeDirtyToDisk()
}
// SortedActivePaymentAddresses returns a slice of all active payment