Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lighting Network Setup #1

Open
bvallelunga opened this issue Dec 1, 2017 · 2 comments
Open

Lighting Network Setup #1

bvallelunga opened this issue Dec 1, 2017 · 2 comments
Assignees
Milestone

Comments

@bvallelunga
Copy link
Owner

No description provided.

@bvallelunga bvallelunga added this to the p0 milestone Dec 1, 2017
@robertDurst
Copy link
Collaborator

@robertDurst
Copy link
Collaborator

Instructions for starting LND and BTCD Docker

Setup docker

1) apt-get update
2) apt-get install docker.io
3) apt-get install docker-compose
CONFIRM:
docker -v => 1.8.0
docker-compose -v => 1.13.0

Setup Lightning Network Daemon and Bitcoin Daemon

5) git clone https://github.com/lightningnetwork/lnd.git
6) cd ~/lnd/docker
7) export NETWORK="simnet" 
8) docker-compose run -d --name alice lnd_btc

Fund a Lightning Node and Activate Segwit

9) docker exec -i -t alice bash 
10) lncli newaddress np2wkh 
11) Ctrl-p ctrl-q
12) MINING_ADDRESS=<alice_address> docker-compose up -d btcd
13) docker-compose run btcctl generate 400

Confirm Segwit Activated and Alice Funded

14) docker-compose run btcctl getblockchaininfo | grep -A 1 segwit
15) docker exec -i -t alice bash 
16) lncli walletbalance

Todo:

  • Connect two BTCD nodes
  • Open LND channel across network

Reference

A majority of this was accomplished from instructions: https://github.com/lightningnetwork/lnd/tree/master/docker

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants