The recover RPC command wipes your node and restarts it with
--recover option. This is only permitted if the node is unused:
no channels, no bitcoin addresses issued (you can use
check to see
if recovery is possible).
hsmsecret is either a codex32 secret starting with "cl1" as returned
hsmtool getcodexsecret, or a raw 64 character hex string.
NOTE: this command only currently works with the
sqlite3 database backend.
On success, an empty object is returned, and your node is restarted.
Rusty Russell <[email protected]> is mainly responsible.
Main web site: https://github.com/ElementsProject/lightning