Skip to content
This repository has been archived by the owner on Nov 8, 2022. It is now read-only.

Latest commit

 

History

History
42 lines (33 loc) · 1.37 KB

docker.md

File metadata and controls

42 lines (33 loc) · 1.37 KB

Docker

  • docker file is in the ./devops/ directory
  • pull the docker image
docker pull hiahatf/mass-dev:0.2.1-beta
  • enter the image
sudo docker run -it mass:0.2.1-beta /bin/bash
  • run the initial setup
cd
./start-mass-dev.sh
  • Automated wallet setup and funding is pending
  • When the console prints "Dev environment initialized..." fund the lnd nodes:
export lncli1="/root/lnd-linux-amd64-v0.13.1-beta/lncli -n regtest --lnddir=/root/.lnd-regtest-1"
export lncli2="/root/lnd-linux-amd64-v0.13.1-beta/lncli -n regtest --lnddir=/root/.lnd-regtest-2 --rpcserver=localhost:11009"
$lncli1 create
$lncli2 create
$lncli2 newaddress p2wkh
/root/bitcoin-0.21.1/bin/bitcoin-cli -regtest generatetoaddress 101 <address from above>
$lncli1 getinfo | grep pubkey
$lncli2 connect [email protected]:9735
$lncli2 openchannel PUBKEY AMOUNT
  • generate 10 more blocks to either wallet for channel confirmation
  • verify the with channelbalance
  • balance the channels with addinvoice on node1 and payinvoice on node 2
  • get addresses for monero with open_wallet (mass-alice or mass-bob) and get_balance rpc call and use the stagenet faucet or mining
  • mass also uses addholdinvoice, settleinvoice and cancelinvoice for payments