Skip to content

Latest commit

 

History

History
56 lines (38 loc) · 2.17 KB

README.md

File metadata and controls

56 lines (38 loc) · 2.17 KB

boltz-poc

0. Requirements

Boltz/RSK Docker images

1. Setup environment

  • Run: npm run docker:reset
  • Run: npm run docker:start

2. Start server

  • Run: npm run server

3. Start client

  • Run: npm run client
  • Go to: http://localhost:3000

4. Stop environment

  • Run: npm run docker:stop

X. Miscellaneous

Generate contract.go

  • 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 docker images

  • 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

Connect btw LN nodes

  • 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

LN nodes URLs:

  • alice: 02e7dd429d9148b6fde3e026d39ac63d2d76a3d3a5469ad8a64e0310fc6f62f302@host.docker.internal:9735
  • bob: 02045b28b45f0b8efdac9381287b728d7c6897aa8c4d26fa5e9570078dc949e11b@host.docker.internal:9739
  • carol: 03b45c2032206051af4e130a8901575107bc1441287700ec5a8b6421d70a863a24@host.docker.internal:9740