Pages
  • LNROOM newsletter
  • First live coding session [#1]
  • pyln-client and Python decorators [#2]
  • Write tests for CLN plugins and Unix domain sockets [#3]
  • pyln-client implementation and Torq node management software [#4]
  • CLN Hooks and BOLT11 [#5]
  • nostr-control and scaling-lightning [#6]
  • bcli and Securing a $100M Lightning node [#7]
  • LDK Node, Greenlight and Breez SDK [#8]
  • Remote control and L402 [#9]
  • LN summit in NY, splicing and Mutiny [#10]
  • commando, lnsocket and CLN 23.08 rc1 [#11]
  • CLN v23.08, sovereign stack and BOLT #12 [#12]
  • Vincenzo Palazzo, LSPs & renepay plugin [#13]
  • Testing applications & 4 major LN implementations [#14]
  • LSP, VLS and Bitcoin Education [#15]
  • LN limitations, Timeout Trees, Greenlight and River report [#16]
  • 1 year of lnroom.live [#17]
  • BOLT#11, clangd and renepay [#18]
  • BOLT#11, Rusty Russell, Clams and CLN v23.11 [#19]
  • Bech32, Chaincode Labs, Christian Decker and Severin Bühler [#20]
  • PeerSwap, Breez SDK and Mutiny Wallet FAQ [#21]
LNROOM newsletter
  • LNROOM newsletter
  • First live coding session [#1]
  • pyln-client and Python decorators [#2]
  • Write tests for CLN plugins and Unix domain sockets [#3]
  • pyln-client implementation and Torq node management software [#4]
  • CLN Hooks and BOLT11 [#5]
  • nostr-control and scaling-lightning [#6]
  • bcli and Securing a $100M Lightning node [#7]
  • LDK Node, Greenlight and Breez SDK [#8]
  • Remote control and L402 [#9]
  • LN summit in NY, splicing and Mutiny [#10]
  • commando, lnsocket and CLN 23.08 rc1 [#11]
  • CLN v23.08, sovereign stack and BOLT #12 [#12]
  • Vincenzo Palazzo, LSPs & renepay plugin [#13]
  • Testing applications & 4 major LN implementations [#14]
  • LSP, VLS and Bitcoin Education [#15]
  • LN limitations, Timeout Trees, Greenlight and River report [#16]
  • 1 year of lnroom.live [#17]
  • BOLT#11, clangd and renepay [#18]
  • BOLT#11, Rusty Russell, Clams and CLN v23.11 [#19]
  • Bech32, Chaincode Labs, Christian Decker and Severin Bühler [#20]
  • PeerSwap, Breez SDK and Mutiny Wallet FAQ [#21]

Write tests for CLN plugins and Unix domain sockets

#3・April 20, 2023

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

PREVRANDOMNEXT