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
This could be useful if we want to create one-time use layers
on the flight and not worry about memory leaks (one time used
layers that are not removed constitute a memory leak in a sense).
Changelog-Added: askrene: add an optional self-destruction timer (expiration parameter) to new layers.
Signed-off-by: Lagrang3 <[email protected]>
Copy file name to clipboardexpand all lines: doc/schemas/lightning-askrene-create-layer.json
+7
Original file line number
Diff line number
Diff line change
@@ -25,6 +25,13 @@
25
25
"description": [
26
26
"True if askrene should save and restore this layer. As a side-effect, create-layer also succeeds if the layer already exists and persistent is true."
27
27
]
28
+
},
29
+
"expiration": {
30
+
"type": "u64",
31
+
"description": [
32
+
"Sets the number of seconds until this layer expires. If this number is specified the layer will be automatically deleted at expiration. A layer cannot be persistent and have an expiration time."
0 commit comments