Skip to content

Generate random dev environment for lnd

Notifications You must be signed in to change notification settings

rsbondi/lnd-dev

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lnd-dev

Generate a random development environment for lnd with established funding of channels

Motivation

Inspired by lnet, this is a development tool that creates random nodes, connects them, funds channels, and provides a UI for managing. You can begin development once launched without a complex procedure to get you started

Features

  • terminal based UI
  • input amount of nodes and connections per node
  • easily switch between nodes in UI
  • UI includes bitcoin node
  • all nodes properly shutdown on exit
  • generate random invoices and payments between nodes

Requirements

  • bitcoind
  • lnd

Usage

  1. Enter number of nodes
  2. Enter maximum outbound channels
  3. Enter number of random payments to generate
    • these will be running in the background
    • set to zero or leave blank if no activity desired
  4. Once launched, enter commands, switch nodes etc.
    • the up and down arrows will scroll previous commands from the prompt
    • switch panes and nodes per shortcuts below

Shortcuts

command action
Ctrl-N Opens node selection dropdown
Ctrl-I Move to command prompt
Ctrl-O Move to output pane
Ctrl-L Clear output pane while in it
Ctrl-A Copy current output buffer
Ctrl-V From prompt, paste copied text. This is a hack for text copied with mouse from output pane

UI Anomalies

  • UI component copies wrapped lines with \n so standard Ctrl-Shift-V does not work with wrapped lines. Use Ctrl-V instead
  • Does not do interactive prompts so for example use -f or --force options with payinvoice or sendpayment, may be others?

TODO:

  • change fmt.Sprintfs to path.Join for windows

See video

Binaries

linux_amd64

darwin_amd64

About

Generate random dev environment for lnd

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages