mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-04-08 03:58:05 +02:00
Merge pull request #6586 from Crypt-iQ/nil_htlcset
contractcourt: make empty htlcSets for closed channels
This commit is contained in:
commit
1e0d6ec0ad
@ -601,11 +601,13 @@ func (c *ChainArbitrator) Start() error {
|
||||
return c.ResolveContract(chanPoint)
|
||||
}
|
||||
|
||||
// We can also leave off the set of HTLC's here as since the
|
||||
// channel is already in the process of being full resolved, no
|
||||
// new HTLC's will be added.
|
||||
// We create an empty map of HTLC's here since it's possible
|
||||
// that the channel is in StateDefault and updateActiveHTLCs is
|
||||
// called. We want to avoid writing to an empty map. Since the
|
||||
// channel is already in the process of being resolved, no new
|
||||
// HTLCs will be added.
|
||||
c.activeChannels[chanPoint] = NewChannelArbitrator(
|
||||
arbCfg, nil, chanLog,
|
||||
arbCfg, make(map[HtlcSetKey]htlcSet), chanLog,
|
||||
)
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user