btcpayserver/BTCPayServer.Tests/docker-bitcoin-generate.ps1

4 lines
345 B
PowerShell
Raw Normal View History

2019-05-08 05:19:16 +02:00
$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 $args $address