Write dirty tx and utxo files when rescans finish.
This commit is contained in:
parent
ebcaa95b35
commit
eca8914254
1 changed files with 2 additions and 0 deletions
|
@ -395,6 +395,7 @@ func (a *Account) ImportPrivKey(wif string, rescan bool) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
Rescan(CurrentRPCConn(), bs.Height, addrs)
|
Rescan(CurrentRPCConn(), bs.Height, addrs)
|
||||||
|
a.writeDirtyToDisk()
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
@ -497,6 +498,7 @@ func (a *Account) RescanActiveAddresses() {
|
||||||
|
|
||||||
// Rescan active addresses starting at the determined block height.
|
// Rescan active addresses starting at the determined block height.
|
||||||
Rescan(CurrentRPCConn(), beginBlock, a.ActivePaymentAddresses())
|
Rescan(CurrentRPCConn(), beginBlock, a.ActivePaymentAddresses())
|
||||||
|
a.writeDirtyToDisk()
|
||||||
}
|
}
|
||||||
|
|
||||||
// SortedActivePaymentAddresses returns a slice of all active payment
|
// SortedActivePaymentAddresses returns a slice of all active payment
|
||||||
|
|
Loading…
Reference in a new issue