Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dianerey/lnsim
Lightning Network Simulator
https://github.com/dianerey/lnsim
Last synced: about 1 month ago
JSON representation
Lightning Network Simulator
- Host: GitHub
- URL: https://github.com/dianerey/lnsim
- Owner: dianerey
- License: gpl-3.0
- Created: 2017-07-03T15:45:16.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-12-28T11:06:43.000Z (almost 7 years ago)
- Last Synced: 2024-08-01T22:51:04.906Z (4 months ago)
- Language: OCaml
- Size: 17.6 KB
- Stars: 19
- Watchers: 1
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-lightning-network - lnsim - A simulator in OCaml (2017). See also: [Simulating a Decentralized Lightning Network with 10 Million Users](https://hackernoon.com/simulating-a-decentralized-lightning-network-with-10-million-users-9a8b5930fa7a) by Reynolds and [Simulating a Decentralized Lightning Network with 500,000 payments, 0.01% fee per hub and 10 Million Users: 100% success (99.9986%)](https://www.reddit.com/r/Bitcoin/comments/7mwag6/simulating_a_decentralized_lightning_network_with/) (Developer Resources / Simulators)
- awesome-lightning-network - lnsim - A simulator in OCaml (2017). See also: [Simulating a Decentralized Lightning Network with 10 Million Users](https://hackernoon.com/simulating-a-decentralized-lightning-network-with-10-million-users-9a8b5930fa7a) by Reynolds and [Simulating a Decentralized Lightning Network with 500,000 payments, 0.01% fee per hub and 10 Million Users: 100% success (99.9986%)](https://www.reddit.com/r/Bitcoin/comments/7mwag6/simulating_a_decentralized_lightning_network_with/) (Developer Resources / Simulators)
README
# lnsim
Lightning Network SimulatorEdit lnsimtop.ml to simulate as many steps as you like.
One payment is attempted for each step.To compile and run:
ocamlopt -o lnsim.cmx -c lnsim.ml
ocamlopt -o lnsimtop.cmx -c lnsimtop.ml
ocamlopt -o lnsimtop unix.cmxa lnsim.cmx lnsimtop.cmx
./lnsimtop