mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-06-27 17:21:09 +02:00
contractcourt: fix potential panic during startup (#7936)
Related to this fix 5a285827194f85af10c138da735b35a1faee97aa, we may not have the historical data for old channels so we skip it here too.
This commit is contained in:
parent
73bf21e0f2
commit
d24f12bd0b
@ -731,13 +731,14 @@ func (c *ChannelArbitrator) relaunchResolvers(commitSet *CommitSet,
|
|||||||
|
|
||||||
if chanState != nil {
|
if chanState != nil {
|
||||||
resolver.SupplementState(chanState)
|
resolver.SupplementState(chanState)
|
||||||
}
|
|
||||||
|
|
||||||
// For taproot channels, we'll need to also make sure the
|
// For taproot channels, we'll need to also make sure
|
||||||
// control block information was set properly.
|
// the control block information was set properly.
|
||||||
maybeAugmentTaprootResolvers(
|
maybeAugmentTaprootResolvers(
|
||||||
chanState.ChanType, resolver, contractResolutions,
|
chanState.ChanType, resolver,
|
||||||
|
contractResolutions,
|
||||||
)
|
)
|
||||||
|
}
|
||||||
|
|
||||||
unresolvedContracts[i] = resolver
|
unresolvedContracts[i] = resolver
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user