pickhardtpayments
pickhardtpayments copied to clipboard
[WIP] ChannelDepletionSimulator.py Example
Template to include the simulation of payments on the ChannelGraph, extending the previous single period model to a multi period model.
Not included is the Channel Graph "listchannels20220412.json", residing in repo root.
Simulation of payments in the Lightning Network
Setup
- Definition of network that serves as OracleLightningNetwork
- Definition of Strategies that the sending nodes act upon
- Definition of number of runs
- Definition of distribution of payment amounts
- Creation of a collection of N payments (src, rcv, amount)
Behaviour
- define strategy for routing: how many tries before calling it a failure (no route)
- define when settlement failed, what to do next - retry or record failure
Metrics
- what do we record when (and why)