Skip to content

A testing framework for bitcoin applications and software

Notifications You must be signed in to change notification settings

Layer-Edge/bitcoin-testing-tools

This branch is 4 commits ahead of BitPolito/bitcoin-testing-tools:master.

Repository files navigation

bitcoin-testing-tools

This repository aims to build a bitcoin test framework based on signet. Docker is extensively used to provide:

  • a bitcoin node that mines bitcoin on a custom signet

Preparation

First of all, you have o make sure that port 60602 is reachable from all over the internet.

On ubuntu you can install ufw with

sudo apt install -y ufw

Then you need to set some default configuration and enable the firewall:

sudo ufw default deny incoming
sudo ufw default allow outgoing
sudo ufw logging off
sudo ufw enable

Miner

The system is thought to have a stand-alone machine on which the bitcoin miner node and core-clightning node run

docker-compose -f miner_signet.yml up

From the "miner" can be useful to retrieve, the bitcoin core, the electrum server, and the faucet addresses with the following commands:

# Bitcoin Core Tor address
echo "Bitcoin tor addr: $(docker exec btc_sig_miner cli getnetworkinfo | jq -r '.localaddresses[].address')"

# Bitcoin Signetchallenge
echo "Bitcoin $(docker exec btc_sig_miner cat /bitcoind/bitcoin.conf | grep signetchallenge)"

# Electrum Server address
echo "Electrum server tor addr: $(docker exec tor cat /var/lib/tor/hidden_service_electrs/hostname)"

# Bitcoin Faucet  address
echo "Bitcoin faucet tor addr: $(docker exec tor cat /var/lib/tor/hidden_service_faucet/hostname)"

About

A testing framework for bitcoin applications and software

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 79.1%
  • Dockerfile 20.9%