Code Monkey home page Code Monkey logo

regtest's Introduction

Boltz Regtest

Successor of legend-regtest-enviroment

Usage

./start.sh
./stop.sh

Data dirs for the services are stored in ./data folder.

Scripts container

docker exec -it boltz-scripts bash
  • bitcoin-cli-sim-client
  • bitcoin-cli-sim-server
  • elements-cli-sim-client
  • elements-cli-sim-server
  • boltzcli-sim (boltz-client)
  • lightning-cli-sim
  • lncli-sim

Since there are two lnd and two cln instances, use lncli-sim 1 or lightning-cli-sim 1 to interact with the first instance and lncli-sim 2 or lightning-cli-sim 2 to interact with the second.

Or alternatively, you can source aliases.sh to have these convenience scripts available on the host machine.

Block explorers

Esplora is running for the Bitcoin Core and Elements regtest:

Otterscan is used as block explorer for Anvil: http://localhost:5100

regtest's People

Contributors

maybeast avatar michael1011 avatar kilrau avatar jackstar12 avatar bufo24 avatar dni avatar

Stargazers

 avatar 22388o⚡️  avatar

Watchers

 avatar  avatar  avatar

Forkers

22388o bufo24

regtest's Issues

Change Folder Structure

lnd, cln etc should have it's own subfolder not be mingeled in host

~/GitHub/regtest/data$ ls -la
total 24
drwxrwxr-x 6 kilrau kilrau 4096 Jul 26 17:19 .
drwxrwxr-x 5 kilrau kilrau 4096 Jul 26 17:05 ..
drwxrwxr-x 2 kilrau kilrau 4096 Jul 26 17:05 boltz
drwxrwxr-x 2 kilrau kilrau 4096 Jul 26 17:05 boltz-client
drwxrwxr-x 2 kilrau kilrau 4096 Jul 26 17:05 elements
drwxr-xr-x 2 root   root   4096 Jul 26 17:20 host

Convenience Scripts

To quote yourself:

i think we should still have a docker-scripts.sh which has convenience functions for lncli etc that are just run in the scripts container

Initial Goals

  • move away from bash (pyscript?)
  • no more sudo anywhere
  • all containerized, easy testing of branches: web app, backend, boltz-client
  • no more separate stuff like npm run db:start for backend
  • have different wallets for backend and user-facing, with legends it's super hard to control balances as bitcoin-core and elements wallets are shared, also mainchain seems to have block rewards which is annoying for the same reason. Maybe we need 2 separate non-bitcoin-core wallets for user and boltz

Let me exit shell

Let me exit the shell where the regtest env is running. Not sure this is very useful, I can tail logs if I want to know things. Right now CTRL+C stops the env.

image

Bump Versions

LND, CLN, core - basically everything is super outdated

Provide All Images on DockerHub

Tried running this, started out fine but got stuck building liquid-electrs and somehow even crashed the terminal and build process stopped. Worked eventually, but CI's will have issues too. Let me pull images please.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.