Skip to content

A payment simulator in the Lightning Network implementing different fee adjustment strategies

Notifications You must be signed in to change notification settings

mlvl36667/lnsim

Repository files navigation

Before you start

For CPU parallel run, install libomp-dev.

sudo apt install libomp-dev

Crafting topologies

A widely used topology can be downloaded from here:

https://www.rene-pickhardt.de/listchannels20220412.json

Then, conv.py can be used to convert the topology. Modify it according to your desires. The program can only handle a sorted list of edges in the ln_topology file. If you want to use larger topologies, create and convert accordingly. Number the vertices from 0. conv.py extracts nodes with more than 10 neighbors, you can change this parameter in the script.

Run

Run 10 simulations on 10 OpenMP threads:

export OMP_NUM_THREADS=10 && g++ -o sim sim.cpp -fopenmp && ./sim [NUM_OF_VERTICES] [NUM_OF_EDGES] 

Results

Simulation results are published at:

https://bit.ly/3T7YxI4

Visualisation

Create eps files from numerical data under visualisation using gnuplot:

gnuplot pl.gp

About

A payment simulator in the Lightning Network implementing different fee adjustment strategies

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published