robosats/tests/bitcoind/entrypoint.sh
daywalker90 62e6258f0f
Feat: fix CLN and reactivate cln integration tests (#1336)
* update cln holdinvoice plugin

DecodeBolt11 was removed in:
d51fd03390

* update CLN to v24.05 and holdinvoice to v3.0.0

* reactivate CLN integration tests

---------

Co-authored-by: jerryfletcher21 <jerryfletcher@cock.email>
2024-06-17 21:33:49 +00:00

18 lines
588 B
Bash
Executable File

#!/bin/sh
# Start bitcoind in the background
bitcoind "$@" &
# Wait for bitcoind to be ready
while ! bitcoin-cli --regtest --rpcuser=test --rpcpassword=test getblockchaininfo 2>/dev/null | grep '"verificationprogress":'; do
echo "Waiting for bitcoind to be ready..."
sleep 1
done
# Run initialization commands
bitcoin-cli --regtest --rpcuser=test --rpcpassword=test createwallet default
bitcoin-cli --regtest --rpcuser=test --rpcpassword=test generatetoaddress 1 $(bitcoin-cli --regtest --rpcuser=test --rpcpassword=test getnewaddress)
# Bring bitcoind to the foreground
wait