mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-07-12 22:22:36 +02:00
htlcswitch+routing: rename GetPaymentResult
to GetAttemptResult
This commit renames the method `GetPaymentResult` to be `GetAttemptResult` to avoid potential confusion and to address the one-to-many relationship between a payment and its attempts.
This commit is contained in:
@ -1306,7 +1306,7 @@ func TestChannelLinkMultiHopUnknownPaymentHash(t *testing.T) {
|
||||
)
|
||||
require.NoError(t, err, "unable to get send payment")
|
||||
|
||||
resultChan, err := n.aliceServer.htlcSwitch.GetPaymentResult(
|
||||
resultChan, err := n.aliceServer.htlcSwitch.GetAttemptResult(
|
||||
pid, htlc.PaymentHash, newMockDeobfuscator(),
|
||||
)
|
||||
require.NoError(t, err, "unable to get payment result")
|
||||
@ -3979,7 +3979,7 @@ func TestChannelLinkAcceptDuplicatePayment(t *testing.T) {
|
||||
)
|
||||
require.NoError(t, err, "unable to send payment to carol")
|
||||
|
||||
resultChan, err := n.aliceServer.htlcSwitch.GetPaymentResult(
|
||||
resultChan, err := n.aliceServer.htlcSwitch.GetAttemptResult(
|
||||
pid, htlc.PaymentHash, newMockDeobfuscator(),
|
||||
)
|
||||
require.NoError(t, err, "unable to get payment result")
|
||||
|
Reference in New Issue
Block a user