This configuration has an accompanying video guide: https://youtu.be/xzJHI5AACQk
This repository holds a Docker build file for building a docker container that holds a BitcoinSV Node instance.
The bitcoin node will be started in REGTEST mode, which means that it will NOT connect to the public TEST network. This mode is ideal for local app development and script testing.
$ docker build . -t twostack_node
$ docker run -d twostack_node
Execute docker ps | grep twostack_node
to get the CONTAINER_ID.
$docker exec -i -t <INSERT_CONTAINER_ID_HERE> /bin/bash
Once inside the container command prompt, you can use the bitcoin-cli
command.
The bitcoin-cli
command has been aliased so you don't have to specify the data folder
where the RPC authentication cookies live.
E.g. you can do :
bitcoin-cli getblockcount
NOTE : A cron job has been scheduled to run every ten minutes inside the container. This cron job will generate a new block automatically. Also note that this job writes to the /usr/var/coinbase.log
file inside the docker container. Writing data inside a container filesystem is inefficient, so please take care not to leave this container running when not in use.