@@ -153,6 +153,7 @@ but destination nodes can be any public node in the network (though
153
153
this may result in liquidity draining over time).
154
154
155
155
Required fields:
156
+
156
157
```
157
158
"source": the payer
158
159
"destination": the payee
@@ -161,22 +162,27 @@ Required fields:
161
162
```
162
163
163
164
Optional fields:
165
+
164
166
```
165
167
"start_secs": the time to start sending payments
166
168
"count": the total number of payments to send
169
+ "activity_name": an optional name for each activity description, used as the logging prefix to relate logs to their corresponding activity
167
170
```
168
171
169
172
> If ` start_secs ` is not provided the payments will begin as soon as the simulation starts (default=0)
170
173
171
174
> If ` count ` is not provided the payments will continue for as long as the simulation runs (default=None)
172
175
176
+ > If ` activity_name ` is not provided the index of each activity description will be used as the logging prefix
177
+
173
178
The example simulation file below sets up the following simulation:
174
- * Connect to ` Alice ` running LND to generate activity.
175
- * Connect to ` Bob ` running CLN to generate activity.
176
- * Dispatch 2000 msat payments from ` Alice ` to ` Carol ` every 1 seconds.
177
- * Dispatch 140000 msat payments from ` Bob ` to ` Alice ` every 50 seconds.
178
- * Dispatch 1000 msat payments from ` Bob ` to ` Dave ` every 2 seconds.
179
- * Dispatch 10 payments (5000 msat each) from ` Erin ` to ` Frank ` at 2 second intervals, starting 20 seconds into the sim.
179
+
180
+ - Connect to ` Alice ` running LND to generate activity.
181
+ - Connect to ` Bob ` running CLN to generate activity.
182
+ - Dispatch 2000 msat payments from ` Alice ` to ` Carol ` every 1 seconds.
183
+ - Dispatch 140000 msat payments from ` Bob ` to ` Alice ` every 50 seconds.
184
+ - Dispatch 1000 msat payments from ` Bob ` to ` Dave ` every 2 seconds.
185
+ - Dispatch 10 payments (5000 msat each) from ` Erin ` to ` Frank ` at 2 second intervals, starting 20 seconds into the sim.
180
186
181
187
```
182
188
{
@@ -198,13 +204,13 @@ The example simulation file below sets up the following simulation:
198
204
"id": "Erin",
199
205
"address": "https://localhost:10012",
200
206
"macaroon": "/path/admin.macaroon",
201
- "cert": "/path/tls.cert"
207
+ "cert": "/path/tls.cert"
202
208
},
203
209
{
204
210
"id": "Frank",
205
211
"address": "https://localhost:10014",
206
212
"macaroon": "/path/admin.macaroon",
207
- "cert": "/path/tls.cert"
213
+ "cert": "/path/tls.cert"
208
214
}
209
215
],
210
216
"activity": [
0 commit comments