@@ -50,7 +50,33 @@ sim-cli sim.json
50
50
The simulator requires access details for a set of ` nodes ` that you
51
51
have permission to execute commands on. Note that the current version
52
52
of the simulator uses keysend to execute payments, which must be
53
- enabled in LND using ` --accept-keysend ` .
53
+ enabled in LND using ` --accept-keysend ` (for CLN node it is enabled by default).
54
+
55
+ The required access details will depend on the node implementation. For LND, the following
56
+ information is required:
57
+
58
+ ```
59
+ {
60
+ "id": <node_id>,
61
+ "address": https://<ip:port or domain:port>,
62
+ "macaroon": <path_to_selected_macaroon>,
63
+ "cert": <path_to_tls_cert>
64
+ }
65
+ ```
66
+
67
+ Whereas for CLN nodes, the following information is required:
68
+
69
+ ```
70
+ {
71
+ "id": <node_id>,
72
+ "address": https://<ip:port or domain:port>,
73
+ "ca_cert": <path_to_ca_cert>,
74
+ "client_cert": <path_to_client_cert>,
75
+ "client_key": <path_to_client_key>
76
+ }
77
+ ```
78
+
79
+ ** Note that node addresses must be declare with HTTPS transport, i.e. < https://ip-or-domain:port > **
54
80
55
81
Payment activity can be simulated in two different ways:
56
82
* Random activity: generate random activity on the ` nodes ` provided,
@@ -70,28 +96,22 @@ not "drain" from the simulation.
70
96
{
71
97
"nodes": [
72
98
{
73
- "LND": {
74
- "id": "Alice",
75
- "address": "https://127.0.0.1:10011",
76
- "macaroon": "/path/admin.macaroon",
77
- "cert": "/path/tls.cert"
78
- }
99
+ "id": "Alice",
100
+ "address": "https://127.0.0.1:10011",
101
+ "macaroon": "/path/admin.macaroon",
102
+ "cert": "/path/tls.cert"
79
103
},
80
- {
81
- "CLN": {
82
- "id": "0230a16a05c5ca120136b3a770a2adfdad88a68d526e63448a9eef88bddd6a30d8",
83
- "address": "https://localhost:10013",
84
- "ca_cert": "/path/ca.pem",
85
- "client_cert": "/path/client.pem",
86
- "client_key": "/path/client-key.pem"
87
- }
104
+ {
105
+ "id": "0230a16a05c5ca120136b3a770a2adfdad88a68d526e63448a9eef88bddd6a30d8",
106
+ "address": "https://localhost:10013",
107
+ "ca_cert": "/path/ca.pem",
108
+ "client_cert": "/path/client.pem",
109
+ "client_key": "/path/client-key.pem"
88
110
}
89
111
]
90
112
}
91
113
```
92
114
93
- ** Note that node addresses must be declare with HTTPS transport, i.e. < https://ip-or-domain > **
94
-
95
115
Nodes can be identified by an arbitrary string ("Alice", "CLN1", etc) or
96
116
by their node public key. If a valid public key is provided it * must*
97
117
match the public key reported by the node.
@@ -126,21 +146,17 @@ The example simulation file below sets up the following simulation:
126
146
{
127
147
"nodes": [
128
148
{
129
- "LND": {
130
- "id": "Alice",
131
- "address": "https://localhost:10011",
132
- "macaroon": "/path/admin.macaroon",
133
- "cert": "/path/tls.cert"
134
- }
149
+ "id": "Alice",
150
+ "address": "https://localhost:10011",
151
+ "macaroon": "/path/admin.macaroon",
152
+ "cert": "/path/tls.cert"
135
153
},
136
154
{
137
- "CLN": {
138
- "id": "0230a16a05c5ca120136b3a770a2adfdad88a68d526e63448a9eef88bddd6a30d8",
139
- "address": "https://127.0.0.1:10013",
140
- "ca_cert": "/path/ca.pem",
141
- "client_cert": "/path/client.pem",
142
- "client_key": "/path/client-key.pem"
143
- }
155
+ "id": "0230a16a05c5ca120136b3a770a2adfdad88a68d526e63448a9eef88bddd6a30d8",
156
+ "address": "https://127.0.0.1:10013",
157
+ "ca_cert": "/path/ca.pem",
158
+ "client_cert": "/path/client.pem",
159
+ "client_key": "/path/client-key.pem"
144
160
}
145
161
],
146
162
"activity": [
0 commit comments