Skip to content

Commit b027cb4

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

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lnwallet/channel.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5553,7 +5553,10 @@ func genHtlcSigValidationJobs(chanState *channeldb.OpenChannel,
55535553
// disk later.
55545554
sigType := htlcCustomSigType.TypeVal()
55555555
auxSig.WhenSome(func(sigB tlv.Blob) {
5556-
htlc.CustomRecords[uint64(sigType)] = sigB
5556+
if htlc.CustomRecords != nil {
5557+
htlc.CustomRecords[uint64(sigType)] =
5558+
sigB
5559+
}
55575560
})
55585561

55595562
auxVerifyJobs = append(auxVerifyJobs, auxVerifyJob)

0 commit comments

Comments
 (0)