Tuesday, November 26, 2024
HomeBitcoinbitcoind - The best way to join a number of LND noeds...

bitcoind – The best way to join a number of LND noeds on totally different machines to a single Bitcoin Core?


I’ve an AWS EC2 occasion. The occasion has Bitcoin Core (Testnet) node and a LND node. It’s working advantageous. Now, I need to set up one other LND on a distinct EC2 occasion, however join it to the identical Bitcoin Core node. I attempted opening the RPC ports and modified the LND config file of the brand new node with rpchost pointing to the primary node. After I launch LND on the brand new node, it hangs after opening the pockets. Any concepts as tips on how to configure this?


bitcoin.conf:

testnet=1
server=1
txindex=1
rpcallowip=0.0.0.0/0
rpcbind=127.0.0.1
rpcuser=XXXXX
rpcpassword=XXXXXX
datadir=/residence/ubuntu/.bitcoin/information
conf=/residence/ubuntu/.bitcoin/bitcoin.conf
daemon=1
keypool=2048
paytxfee=0.0007
zmqpubrawblock=tcp://127.0.0.1:28332
zmqpubrawtx=tcp://127.0.0.1:28333

lnd.conf:

[Application Options]
externalip=XX.166.28.15X <--- Public elastic IP of the LN node ..
alias=xxxxxx
[Bitcoin]
bitcoin.energetic=1
bitcoin.testnet=1
bitcoin.node=bitcoind
[Bitcoind]
bitcoind.rpchost=xx.88.241.yyyy <--- Public elastic IP of bitcoin-core occasion
rpcuser=XXXXX
rpcpassword=XXXXXX
bitcoind.zmqpubrawblock=tcp://127.0.0.1:28332
bitcoind.zmqpubrawtx=tcp://127.0.0.1:28333

error log:

2022-05-29 08:34:57.920 [INF] LTND: Model: 0.15.0-beta.rc3 commit=v0.15.0-beta.rc3-2-g1e0d6ec0a, construct=manufacturing, logging=default, debuglevel=data
2022-05-29 08:34:57.921 [INF] LTND: Energetic chain: Bitcoin (community=testnet)
2022-05-29 08:34:57.922 [INF] RPCS: RPC server listening on 127.0.0.1:10009
2022-05-29 08:34:57.922 [INF] RPCS: gRPC proxy began at 127.0.0.1:8080
2022-05-29 08:34:57.923 [INF] LTND: Opening the principle database, this would possibly take a couple of minutes...
2022-05-29 08:34:57.923 [INF] LTND: Opening bbolt database, sync_freelist=false, auto_compact=false
2022-05-29 08:34:57.924 [INF] LTND: Creating native graph and channel state DB cases
2022-05-29 08:34:57.938 [INF] CHDB: Checking for schema replace: latest_version=27, db_version=27
2022-05-29 08:34:57.938 [INF] LTND: Database(s) now open (time_to_open=14.298545ms)!
2022-05-29 08:34:57.938 [INF] LTND: We're not operating inside systemd or the service kind just isn't 'notify'
2022-05-29 08:34:57.938 [INF] LTND: Ready for pockets encryption password. Use `lncli create` to create a pockets, `lncli unlock` to unlock an current pockets, or `lncli changepassword` to alter the password of an current pockets and unlock it.
2022-05-29 08:35:29.832 [INF] LNWL: Opened pockets
2022-05-29 08:35:29.904 [INF] CHRE: Main chain is about to: bitcoin
panic: runtime error: invalid reminiscence tackle or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x40 pc=0x86821e]
goroutine 100 [running]:
github.com/btcsuite/btcd/rpcclient.(*Consumer).handleSendPostMessage(0xc0000f1080, 0xc0003ef0e0)
        /residence/ubuntu/go/pkg/mod/github.com/btcsuite/[email protected]/rpcclient/infrastructure.go:814 +0x4fe
github.com/btcsuite/btcd/rpcclient.(*Consumer).sendPostHandler(0xc0000f1080)
        /residence/ubuntu/go/pkg/mod/github.com/btcsuite/[email protected]/rpcclient/infrastructure.go:861 +0x34
created by github.com/btcsuite/btcd/rpcclient.(*Consumer).begin
        /residence/ubuntu/go/pkg/mod/github.com/btcsuite/[email protected]/rpcclient/infrastructure.go:1134 +0x105
ubuntu@ip-172-31-2-169:~/.lnd$

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments