Skip to content

Commit

Permalink
contractcourt: fix potential panic during startup
Browse files Browse the repository at this point in the history
Related to this fix 5a28582, we may not
have the historical data for old channels so we skip it here too.
  • Loading branch information
yyforyongyu committed Aug 29, 2023
1 parent cbb4c27 commit 4ca3658
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions contractcourt/channel_arbitrator.go
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 4ca3658

Please sign in to comment.