We need:
- A fully synchronized Litecoin node on testnet, with Zmq notifications enabled (this is easily available on Linux only at the moment)
- Our Lightning Node, eclair, which you can get there: https://github.com/ACINQ/eclair
We then create 3 directories for our eclair node, create an eclair.conf configuration file in each data directory, and all we need to change are the connections ports (so they can connect to the Litecoin client) and the fee rate (so that our opening/closing transactions will be relayed by the Litecoin client). And that’s it ! You can even see in the video that labels are still in BTC/milliBTC.
We then connected A to B, B to C, waited for all funding transactions to be confirmed and all channels announced, made a few payments, closed all channels and waited again for all closing transactions to be confirmed.
litecoin.conf:
server=1
rpcuser=foo
rpcpassword=bar
txindex=1
zmqpubrawblock=tcp://127.0.0.1:30000
zmqpubrawtx=tcp://127.0.0.1:30000
eclair.conf for node A:
eclair.server.port = 48001
eclair.api.port = 8081
eclair.bitcoind.host = “localhost”
eclair.bitcoind.port = 19444
eclair.bitcoind.rpcport = 19332
eclair.bitcoind.rpcuser = “foo”
eclair.bitcoind.rpcpassword = “bar”
eclair.node-alias = “eclairA”
eclair.max-feerate-mismatch = 2.0
eclair.default-feerate-perkw = 100000
eclair.bitcoind.zmq = “tcp://localhost:30000”
eclair.conf for node B:
eclair.server.port = 48002
eclair.api.port = 8082
eclair.bitcoind.host = “localhost”
eclair.bitcoind.port = 19444
eclair.bitcoind.rpcport = 19332
eclair.bitcoind.rpcuser = “foo”
eclair.bitcoind.rpcpassword = “bar”
eclair.node-alias = “eclairB”
eclair.default-feerate-perkw = 100000
eclair.bitcoind.zmq = “tcp://localhost:30000”
eclair.conf for node C:
eclair.server.port = 48003
eclair.api.port = 8083
eclair.bitcoind.host = “localhost”
eclair.bitcoind.port = 19444
eclair.bitcoind.rpcport = 19332
eclair.bitcoind.rpcuser = “foo”
eclair.bitcoind.rpcpassword = “bar”
eclair.node-alias = “eclairC”
eclair.max-feerate-mismatch = 2.0
eclair.default-feerate-perkw = 100000
eclair.bitcoind.zmq = “tcp://localhost:30000”