Title: Bitflate Lightning Network with c-lightning Post by: dnprock on September 08, 2019, 05:30:16 AM I'm experimenting Lightning Network on Bitflate blockchain. Yes, it's possible to use Lightning for altcoins.
Original post: https://bitflate.org/post/2019/09/07/bitflate-lightning-network-with-c-lightning.html Join our discord channel: https://discord.gg/utnEyp8 Bitflate is a Bitcoin fork with constant inflation. Since it is updated frequently with Bitcoin Core code base, it has Lightning Network support. Bitflate mainnet activated SegWit at 28k block. In this article, we describe how to use c-lightning on Bitflate testnet. You can use it on mainnet. Note: Lightning Network is an experimental protocol. c-lightning is experimental software. Please use it with caution. Always run on testnet first. Contact us if you have problem. To run Lightning Network transactions, you will need at least 2 machines (send and receive). You first need to build or download Bitflate Core and c-lightning software on both machines. https://github.com/bitflate/bitflate/releases https://github.com/ElementsProject/lightning/blob/master/doc/INSTALL.md https://github.com/ElementsProject/lightning/releases Send Machine On send machine, start bitflated and lightningd. Code: # You may also need -maxtipage=864000000 option to avoid stale tip on testnet Create new address in c-lightning and send coin to c-lightning address: Code: # Create lightning address After this, you need to mine a block to process the transaction. If you need help with mining a block on testnet, please send us an email: contact@bitflate.org. After your transaction is mined into a block, you should see the amount in c-lightning: Code: ./cli/lightning-cli listfunds Receive Machine On receive machine, start bitflated and lightningd. Code: # You may also need -maxtipage=864000000 option to avoid stale tip on testnet After lightningd start, copy the server public key. It’s a string that look like this: 0284a33b6286d9647b9e2fa4c7e2f71f0bd78b97c78b49726c8d04c204648fed36. Send Coins We are now ready to send some coins from sender machine to receiver machine. On sender machine: Code: # connect to receiver machine Lightning Network requires several nodes to route transactions. You may get and error like: “invoice: insufficient incoming capacity”. In that case, you don’t have sufficient nodes. See the below article for possible solutions. https://medium.com/lightningto-me/practical-solutions-to-inbound-capacity-problem-in-lightning-network-60224aa13393 |