This repository uses Docker for containing the Bitcoin Cash test environment.
# Start the API in one console
docker-compose up
# Build the base image
./build-test-image.sh
# Prepare some BCHs for testing
,/prepare_test.sh
# Run the test scripts with Docker
./test.sh
- In the route-utils.js in
rest.bitcoin.com
repository, thevalidateNetwork(addr)
work only withmainnet
ortestnet
- Workaround here by simply always returning true in any cases.
- The original start-app.sh inside the Insight docker image has a
sleep 10
command. Possibly work without ?- Workaround here by commenting away the sleep command.
- The bitbox.HDNode.toCashAddress(hdNode, regtest) has the second parameter for generating RegTest addresses.
- One of the edited places is here