mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-11-10 06:07:16 +01:00
invoices/sqldb: query by ChanID when updating AMP invoice preimage
This commit is contained in:
committed by
Andras Banki-Horvath
parent
e8c5e7d5ce
commit
f1b7953465
@@ -1116,6 +1116,9 @@ func (s *sqlInvoiceUpdater) AddAmpHtlcPreimage(setID [32]byte,
|
||||
SetID: setID[:],
|
||||
HtlcID: int64(circuitKey.HtlcID),
|
||||
Preimage: preimage[:],
|
||||
ChanID: strconv.FormatUint(
|
||||
circuitKey.ChanID.ToUint64(), 10,
|
||||
),
|
||||
},
|
||||
)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user