LIGHTNING-HOOK-RECOVER(7)
π LIGHTNING-HOOK-RECOVER β the recovery-mode hook, explained (man section 7) π
okay bestie, buckle up, because this one is short but it's important β it's the lightning-hook-recover page from the Core Lightning manual, and it's all about what happens the moment your node wakes up in recovery mode πΈ
β¨ NAME β¨
recover β the hook that gets fired when your node starts up in recovery mode π«Ά
π¦ DESCRIPTION π¦
so this hook is kind of a new addition β it landed in v23.08 β¨
the recover hook gets called every single time the node is started with the --recovery flag. no cap. and what it hands you is the codex32 secret β the one used to derive the HSM secret π
why do you care? because plugins can use that secret to reconnect to peers who are holding onto your peer storage backups for you, and recover state or funds from them. it's giving "hey bestie, remember me? I have receipts" ππ
heads up though: this hook is informational only. it does not let you alter execution flow. nope, not even a little. π
what plugins are expected to do is perform the recovery-related side effects β stuff like reconnecting to peers. that's the whole vibe. lowkey the main character energy of this hook is "here's your secret, now go do your little recovery tasks" π
π HOOK PAYLOAD π
codex32(string) β the codex32-encoded secret that was handed over via--recover. it's the thing you use to reconstruct the node's HSM secret π₯
β HOOK RETURN β
result(string) (always"continue") β returning"continue"just resumes normal execution. that's it, that's the whole return value, periodt β¨
fr fr, the one thing to remember: informational hook,--recoveryflag,--recoversecret,"continue"return. slay π
and that's the page, bestie π§ this was Core Lightning v26.06.9 β go forth and recover your funds, ily, mwah πππ¦
π¦ where this page comes from
- nixpkgs unstable: clightning 26.06.9
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms