multi: rename Payment.PaymentPreimage to Payment.Preimage

Preliminary step to exposing PaymentPreimage() as a method that can be
shared between legacy payments and mutli-path payments.
This commit is contained in:
Conner Fromknecht committed 2019-11-19 20:40:29 -08:00
1 parent b03d8edcd9
commit fbd599a2cb
3 files changed
+11 -11

No files matched your search

+1 -1
View File
@@ -214,7 +214,7 @@ func (p *controlTower) SubscribePayment(paymentHash lntypes.Hash) (
// immediately.
case channeldb.StatusSucceeded:
event = *createSuccessResult(
&payment.Attempt.Route, *payment.PaymentPreimage,
&payment.Attempt.Route, *payment.Preimage,
)
// Payment already failed. It is not necessary to register as a