Write tests for CLN plugins and Unix domain sockets
If the last newsletter triggered your curiosity about Python
decorators you can watch/read how they work in Register a JSON-RPC
method to Core Lightning using pyln-client Python package with the
second example being very close to the way pyln-client
uses them.
In the next live we'll see how to write tests for CLN plugins. Come and join us on Thursday, March 27!
Rusty Russell is a free software developer (for 25+ years) and the first who implemented Lightning Network with Core Lightning. Yesterday, I watched the episode Rusty Russel: Free Software, The Lightning Network, & Micropayments - #Bitcoin with Jake #74 of the podcast Bitcoin With Jake and maybe you'll be interested in watching it too.
As you may know, when we run the command line lightning-cli getinfo
we send a JSON-RPC request to lightningd
process via Unix domain
socket, specifically using by default the socket file
~/.lightning/bitcoin/lightning-rpc
.
If Unix domain sockets is new for you and you want to learn about it you can check the following article and play with Unix domain sockets at the command line. And if you want to know more about them, you can read
https://www.gnu.org/software/libc/manual/html_node/Sockets.html.
Have an amazing day, Tony Aldon https://lnroom.live