From 0935c856247d54e70bbd62a1c015bafaedf0391e Mon Sep 17 00:00:00 2001 From: Carsten Otto Date: Tue, 24 May 2022 16:26:34 +0200 Subject: [PATCH 1/2] add "parallel channels" scenario --- graph.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/graph.yml b/graph.yml index a540318..9d5ff42 100644 --- a/graph.yml +++ b/graph.yml @@ -7,6 +7,7 @@ tests: - destination3: 80000 - shortcut_destination: 20000 - long_route_destination: 20000 + - parallel_channels_destination: 20000 # Define a set of policies that are to be used in the channel definitions below. policies: @@ -47,6 +48,9 @@ nodes: long_route_destination: policy: cheap + parallel_channels_destination: + policy: cheap + start: policy: normal channels: @@ -86,6 +90,9 @@ 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 node0_0: policy: normal @@ -396,3 +403,12 @@ 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 From 1384e4a1f17d826912e6919a81f185ff144087be Mon Sep 17 00:00:00 2001 From: Carsten Otto Date: Tue, 31 May 2022 21:46:15 +0200 Subject: [PATCH 2/2] add "parallel private" scenario --- graph.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/graph.yml b/graph.yml index 9d5ff42..69dcc27 100644 --- a/graph.yml +++ b/graph.yml @@ -8,6 +8,7 @@ tests: - 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: @@ -51,6 +52,9 @@ nodes: parallel_channels_destination: policy: cheap + parallel_private_destination: + policy: cheap + start: policy: normal channels: @@ -93,6 +97,9 @@ nodes: # 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 @@ -412,3 +419,13 @@ nodes: 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