Skip to content

Commit ae6c366

Browse files
committed
paymentsdb: add more comments
1 parent b1cf8c6 commit ae6c366

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

payments/db/sql_converters.go

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,10 @@ func dbPaymentToCreationInfo(paymentIdentifier []byte, amountMsat int64,
2828
copy(identifier[:], paymentIdentifier)
2929

3030
return &PaymentCreationInfo{
31-
PaymentIdentifier: identifier,
32-
Value: lnwire.MilliSatoshi(amountMsat),
31+
PaymentIdentifier: identifier,
32+
Value: lnwire.MilliSatoshi(amountMsat),
33+
// The creation time is stored in the database as UTC but here
34+
// we convert it to local time.
3335
CreationTime: createdAt.Local(),
3436
PaymentRequest: intentPayload,
3537
FirstHopCustomRecords: firstHopCustomRecords,
@@ -217,7 +219,8 @@ func dbDataToRoute(hops []sqlc.FetchHopsForAttemptsRow,
217219
)
218220
}
219221

220-
// Add blinding point if present (only for introduction node).
222+
// Add blinding point if present (only for introduction node
223+
// in blinded route).
221224
if len(hop.BlindingPoint) > 0 {
222225
pubKey, err := btcec.ParsePubKey(hop.BlindingPoint)
223226
if err != nil {

0 commit comments

Comments
 (0)