mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-07-15 23:52:37 +02:00
multi: make GetPaymentResult take payment hash
Used for logging in the switch, and when we remove the pending payments, only the router will have the hash stored across restarts.
This commit is contained in:
@ -1743,7 +1743,7 @@ func TestSwitchSendPayment(t *testing.T) {
|
||||
// First check that the switch will correctly respond that this payment
|
||||
// ID is unknown.
|
||||
_, err = s.GetPaymentResult(
|
||||
paymentID, newMockDeobfuscator(),
|
||||
paymentID, rhash, newMockDeobfuscator(),
|
||||
)
|
||||
if err != ErrPaymentIDNotFound {
|
||||
t.Fatalf("expected ErrPaymentIDNotFound, got %v", err)
|
||||
@ -1761,7 +1761,7 @@ func TestSwitchSendPayment(t *testing.T) {
|
||||
}
|
||||
|
||||
resultChan, err := s.GetPaymentResult(
|
||||
paymentID, newMockDeobfuscator(),
|
||||
paymentID, rhash, newMockDeobfuscator(),
|
||||
)
|
||||
if err != nil {
|
||||
errChan <- err
|
||||
|
Reference in New Issue
Block a user