File tree 1 file changed +10
-1
lines changed
1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -564,6 +564,8 @@ func (d *Daemon) initialize(withMacaroonService bool) error {
564
564
Store : store ,
565
565
WalletKit : d .lnd .WalletKit ,
566
566
ChainParams : d .lnd .ChainParams ,
567
+ ChainNotifier : d .lnd .ChainNotifier ,
568
+ Signer : d .lnd .Signer ,
567
569
}
568
570
staticAddressManager := staticaddr .NewAddressManager (cfg )
569
571
@@ -666,8 +668,15 @@ func (d *Daemon) initialize(withMacaroonService bool) error {
666
668
go func () {
667
669
defer d .wg .Done ()
668
670
671
+ // Lnd's GetInfo call supplies us with the current block height.
672
+ info , err := d .lnd .Client .GetInfo (d .mainCtx )
673
+ if err != nil {
674
+ d .internalErrChan <- err
675
+ return
676
+ }
677
+
669
678
log .Info ("Starting static address manager..." )
670
- err = staticAddressManager .Run (d .mainCtx )
679
+ err = staticAddressManager .Run (d .mainCtx , info . BlockHeight )
671
680
if err != nil && ! errors .Is (context .Canceled , err ) {
672
681
d .internalErrChan <- err
673
682
}
You can’t perform that action at this time.
0 commit comments