From 70338e3cf33a8927eb00a0c3041fb7f394a3da5d Mon Sep 17 00:00:00 2001 From: George Tsagkarelis Date: Wed, 18 Sep 2024 20:14:32 +0200 Subject: [PATCH] lnwallet: fix panic on aux sig handling --- lnwallet/channel.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lnwallet/channel.go b/lnwallet/channel.go index b420b6134c..4a0716055e 100644 --- a/lnwallet/channel.go +++ b/lnwallet/channel.go @@ -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 })