Skip to content

Adopting Bitcoin 23 repository for the workshop session about NodeGuad

License

Notifications You must be signed in to change notification settings

Elenpay/workshop-nodeguard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Workshop

Adopting Bitcoin '23 repository for the workshop session about NodeGuard

DISCLAIMER: This readme has been run and tested on macOS, it shall be equivalent in Linux

Requisites

Setup

Follow the steps below to setup the environment for the workshop session.

1. Clone the repository

git clone https://github.com/Elenpay/workshop-nodeguard

2. Run the regtest network

  1. Open polar lightning
  2. Import Network-> Select devnetwork.zip
  3. Start the network and enable auto mining
  4. Unzip devnetwork.zip to regtest.polar
    unzip devnetwork.zip -d regtest.polar
    
  5. Unzip loopd.zip to .loop
    unzip loopd.zip
    
  6. Bring up the docker-compose in the following order, wait a couple of seconds
docker-compose up nbxplorer -d
  1. Bring everything up except liquidator
docker compose up nodeguard loopserver nodeguard_postgres loopserver -d
  1. Create an api key for liquidator in NG API -> New
  2. Paste the api key in the docker.compose.yaml, replace NODEGUARD_API_KEY env var of liquidator
  3. Start the remaining components
docker-compose up -d
  1. Add carol and alice nodes, take the info from polar. Make sure to point to host.docker.internal:grpcport of each node as endpoints, also the macaroon must be in hex
  2. Create a new finance manager user and set the keys, use NodeGuard companion to ease this process.
  3. Create a multisig wallet with the new created key and fund it with polar
  4. Open a channel and sign it using nodeguard companion
  5. Set up liquidity rules for the new channel

About

Adopting Bitcoin 23 repository for the workshop session about NodeGuad

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published