Friday, November 22, 2024

bitcoind – Learn how 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 effective. Now, I wish to set up one other LND on a unique 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 learn 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=/house/ubuntu/.bitcoin/knowledge
conf=/house/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.lively=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=information
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 shouldn't be '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 present pockets, or `lncli changepassword` to vary the password of an present 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 ready to: bitcoin
panic: runtime error: invalid reminiscence handle or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x40 pc=0x86821e]
goroutine 100 [running]:
github.com/btcsuite/btcd/rpcclient.(*Shopper).handleSendPostMessage(0xc0000f1080, 0xc0003ef0e0)
        /house/ubuntu/go/pkg/mod/github.com/btcsuite/[email protected]/rpcclient/infrastructure.go:814 +0x4fe
github.com/btcsuite/btcd/rpcclient.(*Shopper).sendPostHandler(0xc0000f1080)
        /house/ubuntu/go/pkg/mod/github.com/btcsuite/[email protected]/rpcclient/infrastructure.go:861 +0x34
created by github.com/btcsuite/btcd/rpcclient.(*Shopper).begin
        /house/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

Latest Articles