Title: [Solved] Connect LND and Core on different machines Post by: simpleSliv3r on September 28, 2023, 09:20:46 AM Hi,
I'm trying to connect my LND node to my Core, both on different machines, but my LND is stucked after unlocking the wallet and I cannot make RPC calls as it shows the following error: Code: user@ubuntu:/usr$ lncli getinfo Error from lnd side: Code: 2023-09-28 11:19:26.524 [DBG] RPCS: [/lnrpc.WalletUnlocker/UnlockWallet] requested With a quick search on the Internet, I found that this could be because Core is not completely sync but it's: Code: { The bitcoin.conf and lnd.conf are the following ones: [Bitcoin.conf] Code: server=1 [LND] Code: [Application Options] Thanks in advance, -SS Title: Re: [Issue ]Connect LND and Core on different machines Post by: ABCbits on September 28, 2023, 10:26:02 AM With a quick search on the Internet, I found that this could be because Core is not completely sync but it's: Code: { At very least, number on verificationprogress is just estimation and one of Bitcoin Core member said there's no problem if it's slightly below 1.0[1]. It's proven by 0.9999983770795251 doesn't refer to total of verified block since the value equal to 6249989856747 / 6250000000000 [2]. [1] https://bitcoin.stackexchange.com/a/85973 (https://bitcoin.stackexchange.com/a/85973) [2] https://www.calculator.net/fraction-calculator.html?c2d1=0.9999983770795251&ctype=2&x=79&y=24#decimal2fraction (https://www.calculator.net/fraction-calculator.html?c2d1=0.9999983770795251&ctype=2&x=79&y=24#decimal2fraction) Title: Re: [Issue ]Connect LND and Core on different machines Post by: simpleSliv3r on September 28, 2023, 10:34:45 AM At very least, number on verificationprogress is just estimation and one of Bitcoin Core member said there's no problem if it's slightly below 1.0[1]. It's proven by 0.9999983770795251 doesn't refer to total of verified block since the value equal to 6249989856747 / 6250000000000 [2]. [1] https://bitcoin.stackexchange.com/a/85973 (https://bitcoin.stackexchange.com/a/85973) [2] https://www.calculator.net/fraction-calculator.html?c2d1=0.9999983770795251&ctype=2&x=79&y=24#decimal2fraction (https://www.calculator.net/fraction-calculator.html?c2d1=0.9999983770795251&ctype=2&x=79&y=24#decimal2fraction) Yes, I absolutely discard that as the issue. I think there's some network config issue on bitcoin.conf and lnd.conf files but I'm unable to see it. I've modified rpcallowip parameter to 0.0.0.0/0 but still not working :/ If I just wait I get the following message on LND: Code: 2023-09-28 12:37:13.820 [ERR] LTND: unable to create partial chain control: invalid http POST response (nil), method: getblockhash, id: 1, last error=Post "http://x.x.x.x:8332": dial tcp x.x.x.x:8332: connect: connection timed out Title: Re: [Issue] Connect LND and Core on different machines Post by: simpleSliv3r on September 28, 2023, 12:05:09 PM After changing some config as binding to 0.0.0.0 and listening to 0.0.0.0/0 on bitcoin.conf now I get a different error:
Code: 2023-09-28 14:06:41.431 [DBG] RPCS: [/lnrpc.WalletUnlocker/UnlockWallet] requested Title: Re: [Solved] Connect LND and Core on different machines Post by: simpleSliv3r on September 28, 2023, 01:23:32 PM Finally it's working!
There were different issues. First of all the bindings of bitcoind services must be on 0.0.0.0 if not external IP cannot connect. Also, there was a traffic filtering on the bitcoin core firewall and it was blocking LND traffic. - SS |