Lightning Network Transaction Fee Solver
Please make sure you have installed python3.8
or higher versions of python.
git clone https://github.com/LightningCrashers/DyFEn
cd DyFEn
All dependencies will be handled using the command :
pip install -r requirements.txt
python3 -m scripts.ln_fee --algo PPO --tb_name PPO_tensorboard
python3 -m scripts.baselines --strategy static --node_index 71555
ln_fee:
Parameter | Default | choices |
---|---|---|
--algo | PPO | PPO, TRPO, SAC, TD3, A2C, DDPG |
--node_index | 71555 | Arbitrary index in the data |
--total_timesteps | 100000 | Arbitrary Integer |
--max_episode_length | 200 | Arbitrary Integer less than total_timesteps |
--counts | [10, 10, 10] | List of Integers |
--amounts | [10000, 50000, 100000] | List of Integers |
--epsilons | [.6, .6, .6] | List of floats between 0 and 1 |
- You can modify the transaction sampling parameters by changing counts, amounts and epsilons
counts
contains count of each transaction type.amounts
contains amount of each transaction type in satoshi.epsilons
is the ratio of merchants in final sampling.
- Please note that length of counts, amounts and epsilons lists should be the same. baselines:
Parameter | Default | choices |
---|---|---|
--strategy | static | static, proportional, match_peer |
You can check the results on tensorboard.
tensorboard --logdir plotting/tb_results/
If you are facing problems with tensorboard, run the command below in terminal :
python3 -m tensorboard.main --logdir plotting/tb_results/