diff --git a/server.go b/server.go index 48ed123c..4c9ce4c0 100644 --- a/server.go +++ b/server.go @@ -644,6 +644,7 @@ func newServer(listenAddrs []net.Addr, chanDB *channeldb.DB, cc *chainControl, return s.utxoNursery.IncubateOutputs( chanPoint, commitRes, outRes, inRes, + broadcastHeight, ) }, PreimageDB: s.witnessBeacon, diff --git a/utxonursery.go b/utxonursery.go index f3bf362e..5c801dce 100644 --- a/utxonursery.go +++ b/utxonursery.go @@ -343,7 +343,8 @@ func (u *utxoNursery) Stop() error { func (u *utxoNursery) IncubateOutputs(chanPoint wire.OutPoint, commitResolution *lnwallet.CommitOutputResolution, outgoingHtlcs []lnwallet.OutgoingHtlcResolution, - incomingHtlcs []lnwallet.IncomingHtlcResolution) error { + incomingHtlcs []lnwallet.IncomingHtlcResolution, + broadcastHeight uint32) error { numHtlcs := len(incomingHtlcs) + len(outgoingHtlcs) var ( @@ -469,7 +470,9 @@ func (u *utxoNursery) IncubateOutputs(chanPoint wire.OutPoint, // kindergarten bucket. if len(kidOutputs) != 0 { for _, kidOutput := range kidOutputs { - err := u.registerPreschoolConf(&kidOutput, u.bestHeight) + err := u.registerPreschoolConf( + &kidOutput, broadcastHeight, + ) if err != nil { return err }