LIGHTNING-ASKRENE-AGE(7)

πŸ“¦
version 26.06.9 Β· 2 versions
, in nixpkgs unstable

✨ LIGHTNING-ASKRENE-AGE(7) ✨

okay so bestie, welcome to the askrene-age page πŸ’… β€” that's the manual page name, and yes we're absolutely saying it out loud like it's a celebrity.


🌸 SYNOPSIS 🌸

askrene-age layer cutoff

that's it. two little args. iconic behavior πŸŽ€


πŸ’– DESCRIPTION πŸ’–

Command added in v24.11. ✨ (yes she's newish, she's still got that fresh-launch energy)

So the askrene-age RPC command tells askrene that info added to a layer by askrene-inform-channel and askrene-bias-channel gets, like, less useful once it's past a certain age. Very "that info is so last season" of it, ngl. It currently completely forgets constraints and biases older than cutoff β€” not "ages them out gracefully", just full on memory-holed. πŸ’€

  • layer (string) β€” the name of the layer we're applying this change to 🫢
  • cutoff (u64) β€” the UNIX timestamp; constraints older than this will be forgotten. periodt. ⏰

πŸ¦‹ RETURN VALUE πŸ¦‹

On success, an object comes back at you, containing:

  • layer (string) β€” the layer parameter you provided (it just echoes it right back, slay πŸ’…)
  • num_removed (u64) β€” the number of constraints removed from layer πŸ—‘οΈβœ¨

πŸ‘‘ AUTHOR πŸ‘‘

Rusty Russell rusty@rustcorp.com.au is mainly responsible. main character energy fr fr πŸ’œ


🌈 SEE ALSO 🌈

go read those too, iykyk 🧚


⭐ RESOURCES ⭐

Main web site: https://github.com/ElementsProject/lightning β€” go click around, it's giving home base πŸ πŸ’–


πŸ“ EXAMPLES πŸ“

Example 1: ✨

Request:

$ lightning-cli askrene-age -k "layer"="test_layers" "cutoff"=1738000000

{
  "id": "example:askrene-age#1",
  "method": "askrene-age",
  "params": {
    "layer": "test_layers",
    "cutoff": 1738000000
  }
}

Response:

{
  "layer": "test_layers",
  "num_removed": 1
}

one constraint gone, one layer updated, zero notes πŸ’…πŸ”₯


and that's the whole vibe check bestie β€” this was LIGHTNING-ASKRENE-AGE(7) from Core Lightning v26.06.9, so go forth and expire those old constraints, you absolute icon πŸ«ΆπŸ’œπŸŽ€

πŸ“¦ where this page comes from