Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLN-based proxy full test suite #60

Open
Evanfeenstra opened this issue May 9, 2023 · 1 comment
Open

CLN-based proxy full test suite #60

Evanfeenstra opened this issue May 9, 2023 · 1 comment
Assignees

Comments

@Evanfeenstra
Copy link
Contributor

Evanfeenstra commented May 9, 2023

test suite like this one: https://github.com/stakwork/sphinx-stack/blob/master/alts/proxy.yml

Except with CLN for Dave (proxy node) instead. Alice,Bob,Carol are still LND.

For CLN, using the image and configs found here https://github.com/stakwork/sphinx-swarm/blob/master/src/images/cln.rs (no external signer)

There will need to be some modifications to the lnd/setup script (because CLN does not need to be "unlocked"). The wallet script will need to be different for CLN also https://github.com/stakwork/sphinx-stack/blob/master/lnd/setup/wallet.js. Not sure the best way to do this... but maybe we can use https://lightning.readthedocs.io/lightning-hsmtool.8.html generatehsm command?

I suggest using an environment variable to let the script know if the node is CLN instead of LND

@Evanfeenstra
Copy link
Contributor Author

Evanfeenstra commented May 9, 2023

The CLN config is something like this:

cln1:
    image: sphinxlightning/cln-sphinx:0.1.1
    container_name: dave-cln.sphinx
    command:
      - --bitcoin-rpcconnect=bitcoind.sphinx
      - --bitcoin-rpcport=18443
      - --bitcoin-rpcuser=evan
      - --bitcoin-rpcpassword=thepass
      - --network=regtest
      - --log-level=debug
      - --alias=sphinx-cln1
      - --grpc-port=10012
      - --accept-htlc-tlv-types=133773310
      - --plugin=/usr/local/libexec/c-lightning/plugins/gateway-cln-extension
    environment:
      - EXPOSE_TCP=true
      - GREENLIGHT_VERSION=v23.02.2-50-gd15200c
      - FM_CLN_EXTENSION_LISTEN_ADDRESS=0.0.0.0:10212
    ports:
      - "0.0.0.0:9738:9735"
      - 10012:10012
      - 10212:10212
    links:
      - bitcoind.sphinx
    volumes:
      - ./cln/cln1:/root/.lightning

@tobi-bams tobi-bams self-assigned this May 9, 2023
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

No branches or pull requests

2 participants