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 19, 2024
1 parent fb66bd2 commit 70338e3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lnwallet/channel.go
Original file line number Diff line number Diff line change
Expand Up @@ -5553,6 +5553,11 @@ func genHtlcSigValidationJobs(chanState *channeldb.OpenChannel,
// disk later.
sigType := htlcCustomSigType.TypeVal()
auxSig.WhenSome(func(sigB tlv.Blob) {
if htlc.CustomRecords == nil {
htlc.CustomRecords =
make(lnwire.CustomRecords)
}

htlc.CustomRecords[uint64(sigType)] = sigB
})

Expand Down

0 comments on commit 70338e3

Please sign in to comment.