The lightning-systemic-attack project provides a comprehensive simulation environment for studying network vulnerabilities. It includes "shell-based utilities for environment lifecycle management, including daemon process control, data directory cleanup, and simulation state management". Researchers can launch large-scale simulations to study routing attacks, liquidity issues, and other systemic risks.
: Establish a payment channel between Alice and Bob.
Several open-source tools act as LND emulators by orchestrating local regtest environments. Depending on your workflow, you can choose the tool that best fits your technical stack. lnd emulator utility
Waiting 10 minutes for a Bitcoin block on Mainnet or Testnet ruins developer velocity. With an emulator running in regtest , you can mine a block in milliseconds with a single command.
If you are setting up your development workspace, let me know: : Establish a payment channel between Alice and Bob
Use network throttling tools alongside your emulator to simulate real-world mobile connection drops.
lncli sendpayment --pay_req=<invoice> --force Waiting 10 minutes for a Bitcoin block on
The LND Emulator Utility has a range of use cases, including:
If you prefer a simpler, script-based approach, the LND Simnet Helper provides a set of utilities to make running a simulated set of LND nodes "a snap." It uses Node.js and Yarn to automate starting btcd and LND nodes, along with helper commands for funding and connecting them.