wallet: set chain client birthday after the wallet has been initialized
This commit is contained in:
parent
1ddb9f2c11
commit
ed47296c88
1 changed files with 2 additions and 0 deletions
|
@ -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()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue