mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-12-05 02:11:10 +01: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:
@@ -787,7 +787,7 @@ func preparePayment(sendingPeer, receivingPeer lnpeer.Peer,
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
resultChan, err := sender.htlcSwitch.GetPaymentResult(
|
||||
resultChan, err := sender.htlcSwitch.GetAttemptResult(
|
||||
pid, hash, newMockDeobfuscator(),
|
||||
)
|
||||
if err != nil {
|
||||
@@ -1345,7 +1345,7 @@ func (n *twoHopNetwork) makeHoldPayment(sendingPeer, receivingPeer lnpeer.Peer,
|
||||
}
|
||||
|
||||
go func() {
|
||||
resultChan, err := sender.htlcSwitch.GetPaymentResult(
|
||||
resultChan, err := sender.htlcSwitch.GetAttemptResult(
|
||||
pid, rhash, newMockDeobfuscator(),
|
||||
)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user