Skip to content

feat: external mode of lnd - #746

Open
reliveyy wants to merge 1 commit into
masterfrom
external-lnd
Open

reliveyy wants to merge 1 commit into
masterfrom
external-lnd

Conversation

@reliveyy

Copy link
Copy Markdown
Collaborator

This PR adds "external" mode for lndbtc and lndltc. It's a prerequisite of https://github.com/ExchangeUnion/raspiblitz/tree/xud

How to test?

bash xud.sh --lndbtc.mode=external --lndbtc.rpc-host=127.0.0.1 --lndbtc.rpc-port=10009 \
--lndbtc.certpath=~/.lnd/tls.cert \
--lndbtc.macaroonpath=~/.lnd/data/chain/bitcoin/mainnet/admin.macaroon

@reliveyy
reliveyy requested a review from raladev October 13, 2020 09:45
@reliveyy reliveyy self-assigned this Oct 13, 2020
@raladev

raladev commented Oct 13, 2020

Copy link
Copy Markdown
Contributor
  • does not work at all - instead of using external lnd, utils starts own lnd with neutrino mode.
    So, it seems that --bitcoind/litecoind.mode=neutrino that is used by default is more important then --lndltc.mode=external.

bash xud.sh external-lnd --lndltc.mode=external --lndltc.rpc-host=127.0.0.1 --lndltc.rpc-port=31009 --lndbtc.certpath=~/.xud-docker/simnet/data/lndbtc/tls.cert --lndbtc.macaroonpath=/home/native/.xud-docker/simnet/data/lndbtc/data/chain/bitcoin/simnet/admin.macaroon

Screenshot from 2020-10-13 16-52-35
Screenshot from 2020-10-13 16-52-23

@raladev raladev left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Above

@raladev

raladev commented Oct 15, 2020

Copy link
Copy Markdown
Contributor
  • utils stuck on Warming up step

Steps:

  1. external lndltc is initialized and worked
  2. testnet folder is clean
  3. bash xud.sh -b external-lnd --lndltc.mode=external --lndltc.rpc-host=127.0.0.1 --lndltc.rpc-port=31009 --lndltc.certpath=~/.xud-docker/simnet/data/lndltc/tls.cert --lndltc.macaroonpath=/home/native/.xud-docker/simnet/data/lndltc/data/chain/litecoin/simnet/admin.macaroon

Actual result:

Screenshot from 2020-10-15 16-00-57
Screenshot from 2020-10-15 16-00-55

testnet.log

Looks like initialization step is skipped and utils tries to get access to xud (see testnet.log)

Expected result:

  1. lndbtc neutrino sync
  2. wallet initialization for lndbtc and xud
  3. xud unlock

@raladev

raladev commented Oct 16, 2020

Copy link
Copy Markdown
Contributor

@reliveyy
reliveyy force-pushed the external-lnd branch 2 times, most recently from b1e49e8 to d9e0545 Compare October 21, 2020 20:07
@reliveyy
reliveyy force-pushed the external-lnd branch 3 times, most recently from 911a4a8 to be7f8a3 Compare November 3, 2020 02:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants