Merge pull request #2031 from bkiac/master

Fix failing generateaddress when address contains escape sequences in docker-bitcoin-generate.sh
This commit is contained in:
Nicolas Dorier 2020-10-29 23:58:00 +09:00 committed by GitHub
commit 1199d4ead9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,4 +2,5 @@
bitcoind_container_id="$(docker ps -q --filter label=com.docker.compose.project=btcpayservertests --filter label=com.docker.compose.service=bitcoind)"
address=$(docker exec -ti $bitcoind_container_id bitcoin-cli -datadir="/data" getnewaddress)
docker exec -ti $bitcoind_container_id bitcoin-cli -datadir="/data" generatetoaddress "$@" "$address"
clean_address="${address//[$'\t\r\n']}"
docker exec $bitcoind_container_id bitcoin-cli -datadir="/data" generatetoaddress "$@" "$clean_address"