invoices/sqldb: query by ChanID when updating AMP invoice preimage

This commit is contained in:
Alex Akselrod
2024-08-21 17:33:37 -07:00
committed by Olaoluwa Osuntokun
parent ce442a5083
commit e152a52625
6 changed files with 14 additions and 6 deletions

View File

@@ -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 {