Skip to content

Commit d3267f3

Browse files
authored
Merge pull request #9120 from GeorgeTsagk/aux-sig-panic
lnwallet: fix panic on aux sig handling
2 parents fb66bd2 + 70338e3 commit d3267f3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lnwallet/channel.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5553,6 +5553,11 @@ func genHtlcSigValidationJobs(chanState *channeldb.OpenChannel,
55535553
// disk later.
55545554
sigType := htlcCustomSigType.TypeVal()
55555555
auxSig.WhenSome(func(sigB tlv.Blob) {
5556+
if htlc.CustomRecords == nil {
5557+
htlc.CustomRecords =
5558+
make(lnwire.CustomRecords)
5559+
}
5560+
55565561
htlc.CustomRecords[uint64(sigType)] = sigB
55575562
})
55585563

0 commit comments

Comments
 (0)