htlcswitch/switch: use paymentResultStore to keep track of results

This commit is contained in:
Johan T. Halseth committed 2019-06-07 16:53:32 +02:00
1 parent 2dea790b55
commit 2cc778d309
2 files changed
+60 -97

No files matched your search

+2 -2
View File
@@ -3909,8 +3909,8 @@ func TestChannelLinkAcceptDuplicatePayment(t *testing.T) {
err = n.aliceServer.htlcSwitch.SendHTLC(
n.firstBobChannelLink.ShortChanID(), pid, htlc,
)
if err != ErrPaymentIDAlreadyExists {
t.Fatalf("ErrPaymentIDAlreadyExists should have been "+
if err != ErrDuplicateAdd {
t.Fatalf("ErrDuplicateAdd should have been "+
"received got: %v", err)
}