mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-19 12:01:27 +02:00
invoices/sqldb: query by ChanID when updating AMP invoice preimage
This commit is contained in:
committed by
Olaoluwa Osuntokun
parent
ce442a5083
commit
e152a52625
@@ -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