SatoshiPortal / cyphernode

Modular Bitcoin full-node microservices API server architecture and utilities toolkit to build scalable, secure and featureful apps and services without trusted third parties
MIT License
362 stars 68 forks source link

Liquid branch testnet #235

Open BHodl opened 2 years ago

BHodl commented 2 years ago

When selecting testnet as network on liquid branch, elements is configured as regtest.

Kexkey commented 2 years ago

There's no testnet on liquid :)

There is liquidv1 (mainnet) and elementsregtest (regtest for elements). There is now also signet if I'm not mistaken... haven't tried it yet.

BHodl commented 2 years ago

Look like it exist now. https://blockstream.info/liquidtestnet/blocks/recent I managed to make it work with elements-qt but no success with peg-in for now. Configuration and faucet --> https://liquidtestnet.com

Kexkey commented 2 years ago

Oh wow! I wasn't aware they finally created one! Thanks! I'll update the features/liquid branch!

i5hi commented 7 months ago

@BHodl Have you had any success with this? I am trying to get this working as well.

i5hi commented 7 months ago

Look like it exist now. https://blockstream.info/liquidtestnet/blocks/recent I managed to make it work with elements-qt but no success with peg-in for now. Configuration and faucet --> https://liquidtestnet.com

Still figuring this out myself. FWIU LiquidTestnet is maintained by Blockstream and not actually linked to BitcoinTestnet - so no peg-ins.

i5hi commented 7 months ago

@BHodl

The reason why it doesn't work is because the liquidtestnet.com config has the setting daemon=1 Container needs the process to stay in the foreground.

i5hi commented 7 months ago

I got it working with this docker-compose.yaml

  elements_liquidtestnet:
    image: cyphernode/elements:v22.0.2-mosquitto-debian
    user: $USER
    command: elementsd
    ports:
      - 18891:18891
    volumes:
      - "/mnt/sharednodes/elements_liquidtestnet:/.elements"
    stop_grace_period: 30s
    networks:
      - sharednodesnet
    deploy:
      replicas: 1
      placement:
        constraints:
          - node.labels.io.sharednodes == true
      restart_policy:
        condition: "any"
        delay: 1s
      update_config:
        parallelism: 1