Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add "parallel channels" scenario #7

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions graph.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ tests:
- destination3: 80000
- shortcut_destination: 20000
- long_route_destination: 20000
- parallel_channels_destination: 20000
- parallel_private_destination: 20000

# Define a set of policies that are to be used in the channel definitions below.
policies:
Expand Down Expand Up @@ -47,6 +49,12 @@ nodes:
long_route_destination:
policy: cheap

parallel_channels_destination:
policy: cheap

parallel_private_destination:
policy: cheap

start:
policy: normal
channels:
Expand Down Expand Up @@ -86,6 +94,12 @@ nodes:
- capacity: 10000000
long_route_z:
- capacity: 100000
# the payment needs to be split into two parts, one for each parallel channel to the destination
parallel_channels_x:
- capacity: 1000000
# as above, but one private channel needs to be traversed
parallel_private_x:
- capacity: 1000000

node0_0:
policy: normal
Expand Down Expand Up @@ -396,3 +410,22 @@ nodes:
long_route_destination:
- capacity: 50000
remoteBalance: 40000

parallel_channels_x:
policy: cheap
channels:
parallel_channels_destination:
- capacity: 1000000
remoteBalance: 976000
- capacity: 1000000
remoteBalance: 976000

parallel_private_x:
policy: cheap
channels:
parallel_private_destination:
- capacity: 1000000
remoteBalance: 976000
- capacity: 1000000
remoteBalance: 976000
private: true