Skip to content

Commit 70338e3

Browse files
committed
lnwallet: fix panic on aux sig handling
1 parent fb66bd2 commit 70338e3

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)