You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SimLN uses "activity" definitions to create payment activity between lightning nodes. These definitions are in JSON format.
11
13
12
14
SimLN also requires access details for each node; however, the SimLN plugin will automatically generate these access details for each LND node. The access details look like this:
13
15
14
-
````JSON
16
+
```JSON
15
17
{
16
18
"id": <node_id>,
17
19
"address": https://<ip:port or domain:port>,
18
20
"macaroon": <path_to_selected_macaroon>,
19
21
"cert": <path_to_tls_cert>
20
22
}
21
-
````
22
-
SimLN plugin also supports Core Lightning (CLN). CLN nodes connection details are transfered from the CLN node to SimLN node during launch-activity processing.
23
-
````JSON
23
+
```
24
+
25
+
SimLN plugin also supports Core Lightning (CLN). CLN nodes connection details are transfered from the CLN node to SimLN node during launch-activity processing.
26
+
27
+
```JSON
24
28
{
25
29
"id": <node_id>,
26
30
"address": https://<domain:port>,
27
31
"ca_cert": /working/<node_id>-ca.pem,
28
32
"client_cert": /working/<node_id>-client.pem,
29
33
"client_key": /working/<node_id>-client-key.pem
30
34
}
31
-
````
35
+
```
32
36
33
37
Since SimLN already has access to those LND and CLN connection details, it means you can focus on the "activity" definitions.
34
38
35
39
### Launch activity definitions from the command line
40
+
36
41
The SimLN plugin takes "activity" definitions like so:
### Launch activity definitions from within `network.yaml`
41
-
When you initialize a new Warnet network, Warnet will create a new `network.yaml` file. If your `network.yaml` file includes lightning nodes, then you can use SimLN to produce activity between those nodes like this:
50
+
51
+
When you initialize a new Warnet network, Warnet will create a new `network.yaml` file. If your `network.yaml` file includes lightning nodes, then you can use SimLN to produce activity between those nodes like this:
42
52
43
53
<details>
44
54
<summary>network.yaml</summary>
45
55
46
-
````yaml
56
+
```yaml
47
57
nodes:
48
58
- name: tank-0000
49
59
addnode:
@@ -102,21 +112,23 @@ nodes:
102
112
plugins:
103
113
postDeploy:
104
114
simln:
105
-
entrypoint: "../../plugins/simln"# This is the path to the simln plugin folder (relative to the network.yaml file).
115
+
entrypoint: "../../plugins/simln"# This is the path to the simln plugin folder (relative to the network.yaml file).
0 commit comments