diff --git a/channeldb/duplicate_payments.go b/channeldb/duplicate_payments.go index d5cbd1c2..c78e2804 100644 --- a/channeldb/duplicate_payments.go +++ b/channeldb/duplicate_payments.go @@ -162,7 +162,7 @@ func fetchDuplicatePayment(bucket kvdb.ReadBucket) (*MPPayment, error) { } payment := &MPPayment{ - sequenceNum: sequenceNum, + SequenceNum: sequenceNum, Info: creationInfo, FailureReason: failureReason, Status: paymentStatus, diff --git a/channeldb/mp_payment.go b/channeldb/mp_payment.go index e359ff03..fd89f3ab 100644 --- a/channeldb/mp_payment.go +++ b/channeldb/mp_payment.go @@ -108,9 +108,9 @@ type HTLCFailInfo struct { // have the associated Settle or Fail struct populated if the HTLC is no longer // in-flight. type MPPayment struct { - // sequenceNum is a unique identifier used to sort the payments in + // SequenceNum is a unique identifier used to sort the payments in // order of creation. - sequenceNum uint64 + SequenceNum uint64 // Info holds all static information about this payment, and is // populated when the payment is initiated. diff --git a/channeldb/payments.go b/channeldb/payments.go index 6c573043..c355a06b 100644 --- a/channeldb/payments.go +++ b/channeldb/payments.go @@ -246,7 +246,7 @@ func (db *DB) FetchPayments() ([]*MPPayment, error) { // Before returning, sort the payments by their sequence number. sort.Slice(payments, func(i, j int) bool { - return payments[i].sequenceNum < payments[j].sequenceNum + return payments[i].SequenceNum < payments[j].SequenceNum }) return payments, nil @@ -334,7 +334,7 @@ func fetchPayment(bucket kvdb.ReadBucket) (*MPPayment, error) { } return &MPPayment{ - sequenceNum: sequenceNum, + SequenceNum: sequenceNum, Info: creationInfo, HTLCs: htlcs, FailureReason: failureReason,