Merge pull request #8735 from ellemouton/rb-receives
[2/4] Route Blinding Receives: Receive and send to a single blinded path in an invoice.
This commit is contained in:
49 files changed
+5634
-1884
No files matched your search
+10
-2
@@ -563,8 +563,8 @@ var allTestCases = []*lntest.TestCase{
|
||||
TestFunc: testQueryBlindedRoutes,
|
||||
},
|
||||
{
|
||||
Name: "forward blinded",
|
||||
TestFunc: testForwardBlindedRoute,
|
||||
Name: "route blinding invoices",
|
||||
TestFunc: testBlindedRouteInvoices,
|
||||
},
|
||||
{
|
||||
Name: "receiver blinded error",
|
||||
@@ -586,6 +586,14 @@ var allTestCases = []*lntest.TestCase{
|
||||
Name: "on chain to blinded",
|
||||
TestFunc: testErrorHandlingOnChainFailure,
|
||||
},
|
||||
{
|
||||
Name: "mpp to single blinded path",
|
||||
TestFunc: testMPPToSingleBlindedPath,
|
||||
},
|
||||
{
|
||||
Name: "route blinding dummy hops",
|
||||
TestFunc: testBlindedRouteDummyHops,
|
||||
},
|
||||
{
|
||||
Name: "removetx",
|
||||
TestFunc: testRemoveTx,
|
||||
|
||||
@@ -214,24 +214,24 @@ func testMultiHopPayments(ht *lntest.HarnessTest) {
|
||||
// We expect Carol to have successful forwards and settles for
|
||||
// her sends.
|
||||
ht.AssertHtlcEvents(
|
||||
carolEvents, numPayments, 0, numPayments,
|
||||
carolEvents, numPayments, 0, numPayments, 0,
|
||||
routerrpc.HtlcEvent_SEND,
|
||||
)
|
||||
|
||||
// Dave and Alice should both have forwards and settles for
|
||||
// their role as forwarding nodes.
|
||||
ht.AssertHtlcEvents(
|
||||
daveEvents, numPayments, 0, numPayments,
|
||||
daveEvents, numPayments, 0, numPayments, 0,
|
||||
routerrpc.HtlcEvent_FORWARD,
|
||||
)
|
||||
ht.AssertHtlcEvents(
|
||||
aliceEvents, numPayments, 0, numPayments,
|
||||
aliceEvents, numPayments, 0, numPayments, 0,
|
||||
routerrpc.HtlcEvent_FORWARD,
|
||||
)
|
||||
|
||||
// Bob should only have settle events for his receives.
|
||||
ht.AssertHtlcEvents(
|
||||
bobEvents, 0, 0, numPayments, routerrpc.HtlcEvent_RECEIVE,
|
||||
bobEvents, 0, 0, numPayments, 0, routerrpc.HtlcEvent_RECEIVE,
|
||||
)
|
||||
|
||||
// Finally, close all channels.
|
||||
|
||||
+553
-393
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user