Bitcoin Stack Exchange is a question and answer site for Bitcoin crypto-currency enthusiasts. It only takes a minute to sign up.
Sign up to join this communityAnybody can ask a question
Anybody can answer
The best answers are voted up and rise to the top
I use this docker-compose file to create 2 users and I was able to make a payment over lightning on regtest. The tutorial was made with btcpayserver/bitcoin:0.18.0
.
Now I want to upgrade this image to the latest: btcpayserver/bitcoin:22.0-1
.
The lightning node cannot connect with this new bitcoin image:
Could not connect to bitcoind using bitcoin-cli. Is bitcoind running? Make sure you have bitcoind running and that bitcoin-cli is able to connect to bitcoind. You can verify that your Bitcoin Core installation is ready for use by running: $ bitcoin-cli -regtest -rpcconnect=alice-bitcoind:8335 echo 'hello world' **BROKEN** plugin-bcli: Could not connect to bitcoind using bitcoin-cli. Is bitcoind running? Make sure you have bitcoind running and that bitcoin-cli is able to connect to bitcoind. You can verify that your Bitcoin Core installation is ready for use by running: $ bitcoin-cli -regtest -rpcconnect=alice-bitcoind:8335 echo 'hello world' INFO plugin-bcli: Killing plugin: exited before we sent init
bitcoind is running.
What do I need to change in the parameters ?
The original docker-compose.yml file:
version: "3" services: alice-bitcoind: container_name: alice-bitcoind restart: always image: btcpayserver/bitcoin:0.18.0 expose: - "8335" - "39389" environment: BITCOIN_NETWORK: regtest BITCOIN_EXTRA_ARGS: | rpcport=8335 rpcbind=0.0.0.0:8335 port=39389 addnode=bob-bitcoind:39388 volumes: - "alice_bitcoind_data:/data" bob-bitcoind: container_name: bob-bitcoind restart: always image: btcpayserver/bitcoin:0.18.0 expose: - "8336" - "39388" environment: BITCOIN_NETWORK: regtest BITCOIN_EXTRA_ARGS: | rpcport=8336 rpcbind=0.0.0.0:8336 port=39388 addnode=alice-bitcoind:39389 volumes: - "bob_bitcoind_data:/data" alice-ln: image: elementsproject/lightningd container_name: alice-ln command: - --bitcoin-rpcconnect=alice-bitcoind:8335 - --network=regtest - --alias=alice-ln - --log-level=debug environment: EXPOSE_TCP: "true" expose: - "9735" volumes: - "alice_ln_datadir:/root/.lightning" - "alice_bitcoind_data:/root/.bitcoin" links: - alice-bitcoind bob-ln: image: elementsproject/lightningd container_name: bob-ln command: - --bitcoin-rpcconnect=bob-bitcoind:8336 - --network=regtest - --alias=bob-ln - --log-level=debug environment: EXPOSE_TCP: "true" expose: - "9736" volumes: - "bob_ln_datadir:/root/.lightning" - "bob_bitcoind_data:/root/.bitcoin" links: - alice-bitcoind volumes: alice_bitcoind_data: bob_bitcoind_data: alice_ln_datadir: bob_ln_datadir: networks: {}
You can get bonuses upto $100 FREE BONUS when you:
π° Install these recommended apps:
π² SocialGood - 100% Crypto Back on Everyday Shopping
π² xPortal - The DeFi For The Next Billion
π² CryptoTab Browser - Lightweight, fast, and ready to mine!
π° Register on these recommended exchanges:
π‘ Binanceπ‘ Bitfinexπ‘ Bitmartπ‘ Bittrexπ‘ Bitget
π‘ CoinExπ‘ Crypto.comπ‘ Gate.ioπ‘ Huobiπ‘ Kucoin.
Comments