testnetでlndhub

とりあえず、興味がつきないので立ててみた。MacOS high sierra。

Bitcoin core

まずはこれをインストールする。 で、confを編集。

vi ~/Library/Application\ Support/Bitcoin/bitcoin.conf  

で、こいつをtestnet設定。

testnet=1  
server=1  
daemon=1  
zmqpubrawblock=tcp://127.0.0.1:28332  
zmqpubrawtx=tcp://127.0.0.1:28333  
rpcuser=xxx  
rpcpassword=xxx  
rpcport=18332  

あとは、アプリをぽちっとすると、二時間くらいでsyncできる。

LND

とりあえず、clone。

git clone git@github.com:lightningnetwork/lnd.git  

したら、confを編集。

vi ~/Library/Application Support/Lnd/lnd.conf  
bitcoin.testnet=1  
bitcoin.node=bitcoind  
bitcoind.rpchost=localhost  
bitcoind.rpcuser=xxx  
bitcoind.rpcpass=xxx  
bitcoind.zmqpubrawblock=tcp://127.0.0.1:28332  
bitcoind.zmqpubrawtx=tcp://127.0.0.1:28333  

って感じ。

あとは、

lnd --bitcoin.testnet --bitcoin.active  

で立ち上がる。

lndhub

とりあえず、clone。

git clone git@github.com:BlueWallet/LndHub.git  
cd LndHub  
npm i  

で、あとはここを参考に。