Skip to content
This repository has been archived by the owner on Jul 26, 2024. It is now read-only.

Easy docker LNbits regtest enviroment, for testing boltz extension

License

Notifications You must be signed in to change notification settings

BoltzExchange/legend-regtest-enviroment

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TESTS

nodes

  • lnd-1: for locally testing
  • lnd-2: used for boltz backend
  • cln-1: for locally testing

requirements

starting & validation

  chmod +x ./regtest
  ./regtest
  # short answer :)
  ./regtest && echo "PASSED" || echo "FAILED" > /dev/null

usage

get the regtest enviroment ready

git clone [email protected]:BoltzExchange/legend-regtest-enviroment.git ~/repos/regtest
cd ~/repos/regtest
chmod +x ./regtest
./regtest # start the regtest and also run tests

usage of the bitcoin-cli-sim, elements-cli-sim, lightning-cli-sim and lncli-sim aliases

source docker-scripts.sh
# use bitcoin core, mine a block
bitcoin-cli-sim -generate 1

# use elements, mine a liquid block
bitcoin-cli-sim -generate 1

# use c-lightning nodes
lightning-cli-sim 1 newaddr | jq -r '.bech32' # use node 1
lightning-cli-sim 2 getinfo # use node 2
lightning-cli-sim 3 getinfo # use node 3

# use lnd nodes
lncli-sim 1 newaddr p2wsh
lncli-sim 2 listpeers

urls

debugging docker logs

docker logs regtest-boltz-1 -f
docker logs regtest-clightning-1-1 -f
docker logs regtest-lnd-2-1 -f

About

Easy docker LNbits regtest enviroment, for testing boltz extension

Resources

License

Stars

Watchers

Forks

Languages

  • Shell 100.0%