mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-05-20 16:50:54 +02:00
invoices: ensure AMP subinvoices are correctly updated w/nativesql
This commit is contained in:
parent
e3a939aa0d
commit
ffbdcc1d5d
@ -1283,6 +1283,13 @@ func (s *sqlInvoiceUpdater) UpdateAmpState(setID [32]byte,
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if settleIndex.Valid {
|
||||||
|
updatedState := s.invoice.AMPState[setID]
|
||||||
|
updatedState.SettleIndex = uint64(settleIndex.Int64)
|
||||||
|
updatedState.SettleDate = s.updateTime.UTC()
|
||||||
|
s.invoice.AMPState[setID] = updatedState
|
||||||
|
}
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user