- Clone Boltz repo: https://github.com/rootstock/boltz-backend
- Build Boltz image -> Run:
npm docker:build
- Build RSK node image -> Run:
npm docker:rskj:build
- Run:
npm run docker:reset
- Run:
npm run docker:start
- Run:
npm run server
- Run:
npm run client
- Go to:
http://localhost:3000
- Run:
npm run docker:stop
- install protoc (here)
- install solc (here and here)
- Clone Geth / make / make devtools (doc)
abigen --abi=server/abi/EtherSwap.json --out=server/abi/EtherSwap.go --pkg=abi
Fix common error: lightningnetwork/lnd#1177
- Generate btc blocks
docker exec -it polar-n1-backend1 bitcoin-cli -chain=regtest -rpcuser=polaruser -rpcpassword=polarpass -generate 1
- Connect to bitcoin node
docker exec -it --user lnd polar-n1-backend1 /bin/bash
- Connect to a LN node
docker exec -it --user lnd polar-n1-alice /bin/bash
docker exec -it --user lnd polar-n1-alice lncli --network=regtest connect 02045b28b45f0b8efdac9381287b728d7c6897aa8c4d26fa5e9570078dc949e11b@host.docker.internal:9739
docker exec -it --user lnd polar-n1-alice lncli --network=regtest connect 03b45c2032206051af4e130a8901575107bc1441287700ec5a8b6421d70a863a24@host.docker.internal:9740
docker exec -it --user lnd polar-n1-bob lncli --network=regtest connect 03b45c2032206051af4e130a8901575107bc1441287700ec5a8b6421d70a863a24@host.docker.internal:9740
- alice:
02e7dd429d9148b6fde3e026d39ac63d2d76a3d3a5469ad8a64e0310fc6f62f302@host.docker.internal:9735
- bob:
02045b28b45f0b8efdac9381287b728d7c6897aa8c4d26fa5e9570078dc949e11b@host.docker.internal:9739
- carol:
03b45c2032206051af4e130a8901575107bc1441287700ec5a8b6421d70a863a24@host.docker.internal:9740