Skip to content

Commit

Permalink
lntest/itest: force dave to use the legacy onion payload in multi-hop…
Browse files Browse the repository at this point in the history
… pay test

In this commit, we force Dave to use the legacy onion payload for the
multi-hop test to ensure that we're able to properly mix the old and new
formats, and have all nodes properly decode+forward the HTLC.
  • Loading branch information
Roasbeef committed Aug 23, 2019
1 parent 653d557 commit b1aea41
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions lntest/itest/lnd_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4013,13 +4013,15 @@ func testMultiHopPayments(net *lntest.NetworkHarness, t *harnessTest) {
}

// As preliminary setup, we'll create two new nodes: Carol and Dave,
// such that we now have a 4 ndoe, 3 channel topology. Dave will make
// a channel with Alice, and Carol with Dave. After this setup, the
// such that we now have a 4 node, 3 channel topology. Dave will make a
// channel with Alice, and Carol with Dave. After this setup, the
// network topology should now look like:
// Carol -> Dave -> Alice -> Bob
//
// First, we'll create Dave and establish a channel to Alice.
dave, err := net.NewNode("Dave", nil)
// First, we'll create Dave and establish a channel to Alice. Dave will
// be running an older node that requires the legacy onion payload.
daveArgs := []string{"--legacyprotocol.onion"}
dave, err := net.NewNode("Dave", daveArgs)
if err != nil {
t.Fatalf("unable to create new nodes: %v", err)
}
Expand Down

0 comments on commit b1aea41

Please sign in to comment.