Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LNTransactionFee

Lightning Network Transaction Fee Solver

Made with Python pandas - up-to-date Gym - >=0.2 Stable-baselines3 - >= 1.6 Sb3-contrib - >= 1.6

NetworkX - ~2.8.5 tensorboard - ~=2.9.1

License

How to Use

Prerequisite

Please make sure you have installed python3.8 or higher versions of python.

Install

git clone https://github.com/incentivus/LNTransactionFee
cd LNTransactionFee

All dependencies will be handled using the command :

pip install -r requirements.txt

Run

python3 -m scripts.ln_fee --algo PPO --tb_name PPO_tensorboard
python3 -m scripts.baselines --strategy static --node_index 71555

Parameters

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/

Trouble-shootings

If you are facing problems with tensorboard, run the command below in terminal :

python3 -m tensorboard.main --logdir plotting/tb_results/

Citation

About

Lightning Network Transaction Fee Solver

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages