Skip to content

Instantly share code, notes, and snippets.

@dougvk
Last active May 12, 2019 06:40
Show Gist options
  • Save dougvk/9d4094c9544481495788be10e0b2d218 to your computer and use it in GitHub Desktop.
Save dougvk/9d4094c9544481495788be10e0b2d218 to your computer and use it in GitHub Desktop.
Start a lightning full node

Run the lightningd node on mainnet

root@docker-s-6vcpu-16gb-nyc3-01:~# mkdir -p /scratch/bitcoin/mainnet/clightning
root@docker-s-6vcpu-16gb-nyc3-01:~# docker run --rm --name lightning --network container:bitcoind_mainnet -v /scratch/bitcoin/mainnet/bitcoind:/root/.bitcoin -v /scratch/bitcoin/mainnet/clightning:/root/.lightning --entrypoint /usr/bin/lightningd cdecker/lightningd:master --network=bitcoin --log-level=debug

Check the log output

...
lightningd(1): Hello world from 03e71ed1bbedcf41d97e06ef3dfe4cdf79e871e9a3c809ab32b78e71dea45bf78c aka SLICKERGOPHER #03e71e (version v0.5.2-2016-11-21-1414-g5eceaa7)!
...
lightningd(1): Adding block 00000000000000000055234efac33e0ea30cc8e84ded7997f9e434534fd6f1bb
lightningd(1): Adding block 0000000000000000006fcfbab65ccb4634a800c5b12913b8379e6704b42db663
lightningd(1): Adding block 0000000000000000003f350dcff4fa5b1df61355cd80e9b06be55654d6384518
lightningd(1): Adding block 0000000000000000003b414eadfe9751909bdced866c0fa65b3f0156ebe7168e
lightningd(1): Adding block 000000000000000000377f67b9630130f914d142eb27b286cd81364aa7459d1e
lightningd(1): Adding block 000000000000000000739bd7336736f4a050dc22032e611e7cd747750db71c87
lightningd(1): Adding block 0000000000000000002de8afbb90006588e639cc0f55eb740bc2b76746eff050
lightningd(1): Adding block 0000000000000000007ad87ace5ddec90c0afd371d67cfd45ca3ad01f9b78cf1
lightningd(1): Adding block 00000000000000000014cf80dabf7e6d0b8dec51bc9914311401a9605f6b3606
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment