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