develop custom_top_html:no
default debug random = 1 / type = READ / detected = READ
개발
2018-12-11 10:10:22

라이트닝 네트워크 노드 돌리기

 

 

  안녕하세요. 

  비트코인 확장성 솔루션 중 하나인 라이트닝 네트워크 노드를 돌려보려 합니다.

  제가 워낙 프로그래밍에 무지해서 무슨 말인지 잘 모르겠습니다.

  관심있으신 분은 아래글을 읽고 조금 더 쉽고 직관적으로 설명 해 주신다면 감사하겠습니다.

  일단 비트코인이 살아야 코인 생태계가 활발히 살아나겠죠.

 

  원문 : https://medium.com/coinmonks/guide-setup-a-lightning-network-node-on-windows-8475206807f

  참고 : 라이트닝네트워크 휴대용노드 --  https://www.ddengle.com/board_free/10362471

               

 

  

How to run a Lightning Network node on Windows

This article will go through the steps needed to setup a Lightning Network (LN) node on Bitcoin mainnet using a Windows computer. We will be using ACINQ’S eclair implementation.

Requirements:

- A computer capable of running a Bitcoin full node

- A small amount of bitcoin that could potentially be lost (ideally at least $5 worth)

I will also assume you have a general idea of what the LN is (article explaining Lightning Network here: https://medium.com/@johnny_pham/lightning-network-how-does-it-work-ceeeda8ad21e). This guide is based on the one found on eclair’s github (https://github.com/ACINQ/eclair and https://github.com/ACINQ/eclair/wiki/Configure) and has been modified to be more beginner-friendly.

Why should you run a LN node?

1. Harness the full power of the LN

2. Support the development of both the Bitcoin network and LN

3. Learn about a new technology

4. Be part of a digital network that may change the world

WARNING: eclair and other LN implementations are still in beta and any funds committed to your LN node could be permanently lost. Use only amounts you are comfortable with losing.

Ok, let’s get started!

What is eclair?

Eclair is simply one implementation of the LN; in other words, it is one of many available programs that allows users to interact with the LN, other popular examples being c-lightning and lnd. This is similar to how Bitcoin Core is only one way of running a Bitcoin full node. Bitcoin Core itself is not Bitcoin, just like eclair itself is not the LN.

Step 1. Download eclair at https://github.com/ACINQ/eclair/releases. The first link contains the executable installer. Install eclair on your Windows computer.

Step 2. Ensure your Bitcoin full node meets the following specifications.

a. It must be version 0.16 or higher. The current version is 0.16.1. Download the latest version if needed.

b. It must be non-pruning; that is, it must contain a complete copy of the Bitcoin blockchain. Download the blockchain if needed.

c. It must be a transaction indexing node. This is done by modifying your bitcoin.conf file, which you will have to create if you don’t have one yet:

 
1*feSB3VFMSShnWAByowe8zg.png

Go to C:\ > Users > your_username > AppData > Roaming > Bitcoin

If you cannot find the AppData folder, do the following:

Search your computer for “File Explorer Options”. Go to the “View” tab. Select “Show hidden files, folders, and drives”.

In your Bitcoin folder, create a new text document called “bitcoin.txt”. Edit the properties of the file and rename the “.txt” extension to “.conf” (or if your file explorer is set up to view extensions, simply change the extension by renaming the file). Now open up bitcoin.conf with a text editor and add the following:

testnet=0
server=1
rpcuser=your-rpc-user-here
rpcpassword=your-rpc-password-here
txindex=1
zmqpubrawblock=tcp://127.0.0.1:29000
zmqpubrawtx=tcp://127.0.0.1:29000
addresstype=p2sh-segwit

If your version of Bitcoin Core is 0.17 or higher, add the following to bitcoin.conf:

deprecatedrpc=signrawtransaction

Your rpcuser and rpcpassword can be set to anything. Leave everything else as it is. Your bitcoin.conf should look something like this:

 
1*95E3luJxt_mCE1yscRldCw.png

Contents of bitcoin.conf

Save your updated bitcoin.conf file.

You will now have to restart Bitcoin Core for the changes to take effect. When it starts up again, it will begin indexing the entire blockchain. This can take up to a few days depending on how fast your computer is. Be patient; after this, there’s not much more to go before your LN node is up and running!

 
1*fI9YdtAQtBg7GEN7f-ZTSw.png

The estimated time is not accurate

You can continue to step 3 while waiting for your full node to index.

Step 3. We will now edit eclair’s configuration in a similar manner. Create an “eclair.conf” file in C:\Users\your_username\.eclair:

 
1*zZoqt57AFie1TpuVdDQv_A.png

Add the following to eclair.conf:

eclair.chain=mainnet
eclair.bitcoind.rpcport=8332
eclair.bitcoind.rpcuser=yourusername
eclair.bitcoind.rpcpassword=yourpassword
eclair.node-alias=”your alias here (must be in double quotes)”
eclair.node-color=ff9900

Set “yourusername” and “yourpassword” to the username and password you specified in bitcoin.conf.

You can give your LN node any name by setting eclair.node-alias.

Eclair.node-color is the color your node will have on LN explorers such as https://lnmainnet.gaben.win/. The color is specified in hexadecimal format.

Your eclair.conf should look something like this:

 
1*I39rnLIywz4gghypg5Ynmw.png

Contents of eclair.conf

Save your changes to eclair.conf.

Step 4. Once your Bitcoin full node is indexed and synced, start up eclair with your Bitcoin node running in the background. If you get an error message from eclair saying that a Bitcoin full node could not be found, your full node is not properly configured. Go through step 2 again.

Step 5. To establish your first LN payment channel, you will need to fund your Bitcoin Core wallet. Eclair will use any funds it finds in your Bitcoin Core wallet. Any returned bitcoin from closing a channel is also sent back to your wallet.

Send some bitcoin to your Bitcoin Core wallet. Again, since eclair is still in beta, any funds used to open a LN payment channel can be permanently lost. Use amounts you don’t mind losing. Some nodes will require payment channels to be above a certain value to connect to them, so I recommend at least 60,000 satoshis (0.0006 BTC, about $5 worth at the time of writing).

Step 6. Once your wallet is funded, open a channel in eclair:

 
1*Cm-NZx5RvgO4XtIqcS13QA.png

You will need to find a target node URI. If you don’t already have one in mind, you can find one at https://lnmainnet.gaben.win/ or https://1ml.com/. Click on a node and look for the URI of the node.

 
1*ArzQG1pOhYGN4AOpiLmPMQ.png

Choose how much bitcoin you want to fund your channel with. Do not send all of your bitcoin or you may get an error. The fee rate is the fee with which your bitcoin transaction will be sent. The push amount is optional. Double check everything and then click connect. Your channel’s status will be updated:

 
1*Rax-6exluWSh1_4vYlJDug.png

Once your transaction confirms on the Bitcoin network, your LN payment channel has been established:

 
1*1rd-nH3L8GQDVBtf8fHNjQ.png

That’s it! You now have an operational Bitcoin full node and Lightning Network node.

You can check for your node at https://lnmainnet.gaben.win/. It usually takes no more than 30 mins for a node to appear.

 

 

 

 

 

 

 

 

 

 

-------------------------------------

꼬리말

* 게시글 내용 삭제레벨 강등

* 질문은 각 주제별 게시판에 적어주세요.

 

비트코인 암호화화폐 커뮤니티 땡글~ 땡글~

-------------------------------------

394
댓글 13
  • 단순 번역이 필요하신게 아니시군요 ^^;;
    프로그래밍 능력을 바탕으로 설명가능하신 능력자님 등판이 기대되네요.
    저도 돌려보고 싶기도 하고요.
  • @ryanSCB
    감사합니다. 라이트닝 네트워크의 노드 수가 늘어나면 안정화가 되고 그러면 실사용으로 이어질 수 있다고 하네요
  • 우선 좋아요 꾹~ ^^
  • 영어 공부할 겸 개발새발 번역해 보니 도입 부분은 라이트닝 노드에 대한 설명이고

    여기서 중요한 건 eclair 프로그램이 베타 버전이라 어쩌면 비트코인 잃어버릴 수도 있으니
    잃어버려도 괜찮을 정도의 금액으로 시작하라고 경고하네요.

    다운로드합니다. https://github.com/ACINQ/eclair/releases
    그런데 프로그램 버전이 0.16 이상이어야 한답니다. 링크로 들어가서 최신 버전 받으면 될 듯합니다.

    b. c. 항목은 무슨 뜻인지 모르겠습니다. 저도 프로그램 용어는 잘 몰라서요.

    다음에는 AppData > Roaming > Bitcoin 폴더로 들어가서 conf 파일 설정합니다.
    rpcuser와 rpcpassword를 설정 후 저장합니다.

    비트코인 코어 지갑 restart. 동기화 완료될 때까지 며칠 걸리니까 그동안 eclair.conf 설정하고 있으라는군요.
    C:\Users\your_username\.eclair:로 들어가서 conf 설정하는데
    yourusername” and “yourpassword은 비트코인 conf파일에 적은 rpcuser와 rpcpassword 일치해야 한답니다.
    비트코인 코어 지갑의 동기화가 끝나면 eclair 시작하는데 오류(Bitcoin full node could not be found)가 나면
    비트코인 conf 파일 재점검해 보라고 합니다.

    오류 없이 진행되었다면 비트코인 지갑으로 금액을 입금해야 하는데 앞서 경고했듯이 잃어버릴 수도 있으니
    최소금액 0.0006BTC를 추천하고 있습니다.
    입금 완료되었으면 eclair 열어서 타깃 노드를 찾아야 하는데 https://lnmainnet.gaben.win/ or https://1ml.com/.
    이곳 두 군데서 찾을 수 있다고 합니다.

    예시 이미지처럼 얼마를 라이트닝 노드에 입금할 건지 정해야 하는데 전송료 발생하니 창에 보이는 금액 다 전송하면
    금액에 따라 에러 날 수 있다는 내용 같습니다.
    그다음 예시 이미지처럼 보이면 성공한 것이고 자신의 노드는 https://lnmainnet.gaben.win/ 에서 확인할 수 있다고 합니다.

    제 개발새발 번역에 따라 비트코인 날려도 책임 못 집니다.^^
  • @홈런치고이민가자
    감사합니다. 근데 저는 무작정 따라하기 수준의 가이드가 필요합니다. ㅋ
  • 개발새발 번역이 아니신데여

    저는 잘 모르지만 ㅋㅋ

  • 잘 읽었습니다 좋아요 꾸~욱
  • ?
    저 라이트닝노드를 유지하면 무슨 보상이 있나요?
  • @마스터훈

    이 노드로 채널 개설시 아주 적은 소액의 수수료를 받는걸로 압니다.

    지금은 별 수입이 안되겠지만 먼 미래에 수천만, 수억명이 이용하게 된다면 ...
    제가 노드를 돌리려는 목적은 라이트닝 네트워크의 확대와 안정화에 기여 하기 위함이지 수익을 얻고자 함은 아닙니다.
    노드 수가 많을 수록 네트워크 안정화에 도움이 되는 걸로 압니다.
    나중에 안정화 되서 실재로 소액결제에 이용된다면 그 땐 제가 보유한 비트코인과 알트코인의 가격이 동반 상승할테고 그게 저의 수익이 될거라고 생각합니다.

     근데   어차피 24시간 돌리는 채굴기에 그냥 라이트닝네트워크 노드도 같이 돌리면 되지 않나요???

  • ?
    @rhdwjd
    어,, 그렇군요,,
    소중한 말씀 감사합니다.
  • @rhdwjd
    라이트닝네트워크용 노드만 돌리면 되는 것이 아니라 비트코인코어 지갑도 같이 돌려야 하는거라 일반 채굴기에선 상당히 부담이 될겁니다.
    (비트코인코어 지갑용 블록체인 데이터만 몇백기가 될겁니다...ㅠㅠ)
  • @Dev_J

    알아보니 그렇더군요. 근데 누군가 경량으로 돌리는 방법을 만든 모양입니다. 

     https://www.ddengle.com/develop/10511589

    근데 도무지 무슨 말인지 모르겠네요 ㅠㅠ

  • ?
    정보 잘 보고 갑니다
default debug random = 0 / type = READ / detected = READ

List of Articles
번호 분류 제목 추천 수 조회 수 글쓴이 날짜
개발 라이트닝 네트워크 노드 돌리기       안녕하세요.    비트코인 확장성 솔루션 중 하나인 라이트닝 네트워크 노드를 돌려보려 합니다.   제가 워낙 프로그래밍에 무지해서 무슨 말인지 잘 모르겠습니다.   관심있으신 분은 아래... 13 file 5 2107
rhdwjd
2018.12.11
359 개발 블록체인 개발자가 되기 위하여 안녕하세요? 금마입니다.  (https://www.ddengle.com/@63285)   2016년 5월 28일 개발을 처음 시작하는 일반인을 대상으로 글을 올린 적이 있습니다.  * 개발공부가 처음이라고요?(https://www.d... 31 25 7163
금마
2018.12.11
358 개발 블록체인 강의 05 - 암호화(2) 국내 대기업 L* 에서 교육한 블록체인 교육 실강입니다.   https://www.youtube.com/watch?v=naSwBOFA_DU&feature=youtu.be                     ------------------------------------- 꼬... 5 10 1090
쌍둥아빠
2018.12.12
357 [강좌] 이더소셜 PHP API 서버 만들기 #2. 서버 환경 설정 안녕하세요. 쌩광부입니다.   이더소셜 PHP API 서버 만들기 2번째 강좌입니다. 이번 시간에는 코딩에 앞서 서버 환경 설정방법에 대하여 설명하도록 하겠습니다.   윈도우에서는 APM Setup을 이... 7 18 1910
쌩광부
2018.12.12
356 질문 라이트닝네트워크 노드 도대체 무슨말인지???       도데체 무슨말인지 문과 출신 사람들도 이해할수 있도록 알기쉽게 설명 좀 부탁드립니다.^^        출처 : 코인투데이         라이트닝을 이용한 비트코인 노드의 놀라운 발전속도 지난 ... 9 file 0 1052
rhdwjd
2018.12.13
355 비트코인 캐시는 어떻게 전송속도 문제를 극복하는가? _ 블록체인 쿠키     비트코인 캐시는 빅 블록 스케일링을 채택하였습니다.      블록체인은 코인 전송 주문을 블록에 담아 처리하는데 비트코인은 1MB의 블록에 전송 거래건을 기록합니다. (segwit 제외)     반... 12 file 14 2122
도원Dowon
2018.12.14
354 [강좌] 이더소셜 PHP API 서버 만들기 #3. 계정 잔액 확인하기 안녕하세요. 쌩광부입니다.   #3. 계정 잔액 확인하기   우선 이더소셜 노드에서 잔액을 읽어오기 위해 노드를 설치해야합니다.   1. 이더소셜 노드 설치하기   이더소셜 노드의 빌드를 위해 필... 4 10 2921
쌩광부
2018.12.14
353 개발 erc-20토큰과 백서 작성 문의드립니다. 안녕하세요 .   토큰개발과 백서 작성 의뢰를 하려 합니다 erc-20토큰 개발 문의 드립니다.  전송 기능만 있으면 됩니다 . 현재는 스마트 컨트랙은 따로 필요 없습니다.    더불어 백서 작성 의... 0 695
inyori
2018.12.15
352 질문 거래소 서버 vps사용되나요?         해외친구한테 맡겨서 거래소제작 중인데 서버를 vps 넣어도 상관없나요?? 마무리단계인대 사업하고 아이디어만 가지고 하는거라 서버랑 프로그래밍쪽은 자세히 모릅니다. 잘아시는분들 ... 9 0 704
글로벌플렛폼
2018.12.16
351 질문 모네로질문이요~     안녕하세요 모네로 연구중입니다.    ubutu로 개발연구중인데 1모네로가 리눅스에서 단위가 어떻게되나요?   표기법이다른거같은데 아시는분 알려주시면 감사하겟습니다.                   ... 9 0 544
피로
2018.12.18
350 개발 06 블록체인 - 트랜잭션1 국내 대기업 L* 에서 교육한 블록체인 교육 실강입니다.   https://www.youtube.com/watch?v=VQbRemR1Hic&feature=youtu.be                     ------------------------------------- 꼬... 2 7 917
쌍둥아빠
2018.12.20
349 알트코인 코어 설치 질문 드립니다. 안녕하세요 코인 코어 설치를 해보고 싶어서 문의 드립니다~ 찾을려고 해도 찾을 수가 없네요ㅠㅠ 에이다, 미스릴 ,오미세고 혹시 코어 설치방법 아시는분 계신가요??   구글링해도 안나오는거 ... 11 0 636
블록체인배우고싶어요
2018.12.20
348 질문 bitmex비트멕스 ccxt order 에러 질문드립니다. 안녕하세요    코드는 아래 세줄입니다. 여기서도 검색해서 작성한 코드구요. 그런데 이렇게 코드를 실행하면 마지막 3번째 오더실행시 에러가  뜹니다. ======================================... 1 0 1547
jins81c
2018.12.21
347 개발 07 블록체인 - 머클트리 국내 대기업 L* 에서 교육한 블록체인 교육 실강입니다.     https://www.youtube.com/watch?v=r9QP_Y_VROQ                       ------------------------------------- 꼬리말 * 게시글 내용... 8 11 1574
쌍둥아빠
2018.12.21
346 개발 업비트 API 요청수 제한   //감사합니다. 해결했습니다.   웹소켓을 이용하면 깔끔하게 진행됩니다. 웹소켓 이용추천드립니다.     * 게시글 내용 삭제시 레벨 강등 * 질문은 각 주제별 게시판에 적어주세요.   비트코인... 6 0 3568
김연성
2018.12.22
345 질문 깃허브를 통해 코인을카피해보려합니다(도움 주시면 사례하겠음) 비트코인그린최신버전에서 마노와 노드서버를 올리고 진행중인데 pow에서 포스로 넘어갈시 블록생성이안됩니다. 도움주실수있는분은 비트로 사례가능합니다!   @acidbet3000 텔레그램으로연락부... 1 0 767
만득미남
2018.12.25
344 질문 ccxt로 비트멕스 짜고 돌리는데 잘 돌다가 매번 다른 에러가 나네요   ccxt로 비트멕스 짜고 돌리는데 잘 돌다가 매번 다른 에러가 나네요 되던부분에서 에러나고, 또 되고 고수님들 도움 부탁드립니다.       File "C:\Anaconda3\lib\site-packages\ccxt\base\exc... 2 0 1252
jins81c
2018.12.26
343 개발 구글스프래드시트로 거래소 코인 수량 확인해보신 분 계시나요? 구글스프레드시트의 스크립트편집기능을 이용해서 코인 가격을 끌어와서 밖에 나가있을 때 잘 사용하고 있는데   혹시 구글스프레드시트로 코인 수량 끌어와보신 분 계시나요? 파이썬으로는 해봤... 1 0 504
Mist.B
2018.12.26
342 질문 이더리움 받는것은 되는데, 보내기가 안됩니다. 이전에 다른분의 글에 댓글로 질문 드리다가, 새로 질문 드립니다.   우분투 17.10 이고... geth로 하다가, 도저히 안되어서 parity로 바꾸어서 테스트 중입니다.   parity 테스트넷인 kovan 에... 8 0 806
비폭력무저항
2018.12.27
341 질문 이더스캔 문의드립니다. 초보입니다. 혼자 공부중인데여. 하다보니 좀 많이 막히네요. 테스트넷으로 하고있구요. 코인 수량10개를 만들어서 테스트해보는 중인데... 메타마스크 10개를 받았습니다. 이더스캔에 확인해보... 4 file 0 893
심퉁이
2018.12.29
Board Pagination Prev 1 ... 70 71 72 73 74 75 76 77 78 79 ... 92 Next
/ 92
default debug random = 0 / type = READ / detected = READ