wallet: set chain client birthday after the wallet has been initialized

This commit is contained in:
Wilmer Paulino 2018-09-12 14:25:11 -07:00
parent 1ddb9f2c11
commit ed47296c88
No known key found for this signature in database
GPG key ID: 6DF57B9F9514972F

View file

@ -173,6 +173,8 @@ func (w *Wallet) SynchronizeRPC(chainClient chain.Interface) {
switch cc := chainClient.(type) { switch cc := chainClient.(type) {
case *chain.NeutrinoClient: case *chain.NeutrinoClient:
cc.SetStartTime(w.Manager.Birthday()) cc.SetStartTime(w.Manager.Birthday())
case *chain.BitcoindClient:
cc.SetBirthday(w.Manager.Birthday())
} }
w.chainClientLock.Unlock() w.chainClientLock.Unlock()