Skip to content

Commit

Permalink
lnwallet: fix panic on aux sig handling
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgeTsagk committed Sep 18, 2024
1 parent fb66bd2 commit b027cb4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lnwallet/channel.go
Original file line number Diff line number Diff line change
Expand Up @@ -5553,7 +5553,10 @@ func genHtlcSigValidationJobs(chanState *channeldb.OpenChannel,
// disk later.
sigType := htlcCustomSigType.TypeVal()
auxSig.WhenSome(func(sigB tlv.Blob) {
htlc.CustomRecords[uint64(sigType)] = sigB
if htlc.CustomRecords != nil {
htlc.CustomRecords[uint64(sigType)] =
sigB
}
})

auxVerifyJobs = append(auxVerifyJobs, auxVerifyJob)
Expand Down

0 comments on commit b027cb4

Please sign in to comment.