Skip to content

Instantly share code, notes, and snippets.

@LNBIG-COM
Last active March 25, 2019 19:47
Show Gist options
  • Save LNBIG-COM/f2e2804fe5cf7a10184ae909392aa5f4 to your computer and use it in GitHub Desktop.
Save LNBIG-COM/f2e2804fe5cf7a10184ae909392aa5f4 to your computer and use it in GitHub Desktop.
The goal to get balanced channels can be reached through fees!
2019-03-22 i wrote the script which changes a channel fees by certain scheme
Scheme described here:
https://twitter.com/lnbig_com/status/1109035044377645056
After three days (present time is 2019-03-25 19:40 UTC) i have a following amount changings of balanced/unbalanced channels.
Below an each line is hourly amount of balanced/unbalanced channels:
Amount of balanced (30%-60%) ones: 148
Amount of balanced (30%-60%) ones: 150
Amount of balanced (30%-60%) ones: 149
Amount of balanced (30%-60%) ones: 150
Amount of balanced (30%-60%) ones: 150
Amount of balanced (30%-60%) ones: 150
Amount of balanced (30%-60%) ones: 150
Amount of balanced (30%-60%) ones: 150
Amount of balanced (30%-60%) ones: 149
Amount of balanced (30%-60%) ones: 150
Amount of balanced (30%-60%) ones: 153
Amount of balanced (30%-60%) ones: 153
Amount of balanced (30%-60%) ones: 153
Amount of balanced (30%-60%) ones: 153
Amount of balanced (30%-60%) ones: 154
Amount of balanced (30%-60%) ones: 153
Amount of balanced (30%-60%) ones: 153
Amount of balanced (30%-60%) ones: 153
Amount of balanced (30%-60%) ones: 154
Amount of balanced (30%-60%) ones: 154
Amount of balanced (30%-60%) ones: 154
Amount of balanced (30%-60%) ones: 154
Amount of balanced (30%-60%) ones: 154
Amount of balanced (30%-60%) ones: 156
Amount of balanced (30%-60%) ones: 155
Amount of balanced (30%-60%) ones: 153
Amount of balanced (30%-60%) ones: 154
Amount of balanced (30%-60%) ones: 155
Amount of balanced (30%-60%) ones: 155
Amount of balanced (30%-60%) ones: 155
Amount of balanced (30%-60%) ones: 155
Amount of balanced (30%-60%) ones: 156
Amount of balanced (30%-60%) ones: 157
Amount of balanced (30%-60%) ones: 158
Amount of balanced (30%-60%) ones: 160
Amount of balanced (30%-60%) ones: 160
Amount of balanced (30%-60%) ones: 161
Amount of balanced (30%-60%) ones: 162
Amount of balanced (30%-60%) ones: 163
Amount of balanced (30%-60%) ones: 163
Amount of balanced (30%-60%) ones: 165
Amount of balanced (30%-60%) ones: 165
Amount of balanced (30%-60%) ones: 165
Amount of balanced (30%-60%) ones: 165
Amount of balanced (30%-60%) ones: 165
Amount of balanced (30%-60%) ones: 164
Amount of balanced (30%-60%) ones: 163
Amount of balanced (30%-60%) ones: 162
Amount of balanced (30%-60%) ones: 161
Amount of balanced (30%-60%) ones: 164
Amount of balanced (30%-60%) ones: 164
Amount of balanced (30%-60%) ones: 164
Amount of balanced (30%-60%) ones: 165
Amount of balanced (30%-60%) ones: 165
Amount of balanced (30%-60%) ones: 168
Amount of balanced (30%-60%) ones: 168
Amount of balanced (30%-60%) ones: 170
Amount of balanced (30%-60%) ones: 170
Amount of balanced (30%-60%) ones: 170
Amount of balanced (30%-60%) ones: 170
Amount of balanced (30%-60%) ones: 170
Amount of balanced (30%-60%) ones: 170
Amount of balanced (30%-60%) ones: 171
Amount of balanced (30%-60%) ones: 171
Amount of balanced (30%-60%) ones: 171
Amount of balanced (30%-60%) ones: 170
Amount of balanced (30%-60%) ones: 170
Amount of balanced (30%-60%) ones: 170
Amount of balanced (30%-60%) ones: 173
Amount of balanced (30%-60%) ones: 173
Amount of balanced (30%-60%) ones: 172
Amount of balanced (30%-60%) ones: 173
And grepped output by 'unbalanaced' word of my log. Each two lines are one hourly starting:
Amount of unbalanced ones (local balance > 60%): 9162
Amount of unbalanced ones (local balance < 30%): 2005
Amount of unbalanced ones (local balance > 60%): 9155
Amount of unbalanced ones (local balance < 30%): 2008
Amount of unbalanced ones (local balance > 60%): 9150
Amount of unbalanced ones (local balance < 30%): 2006
Amount of unbalanced ones (local balance > 60%): 9151
Amount of unbalanced ones (local balance < 30%): 2006
Amount of unbalanced ones (local balance > 60%): 9152
Amount of unbalanced ones (local balance < 30%): 2005
Amount of unbalanced ones (local balance > 60%): 9151
Amount of unbalanced ones (local balance < 30%): 2005
Amount of unbalanced ones (local balance > 60%): 9151
Amount of unbalanced ones (local balance < 30%): 2005
Amount of unbalanced ones (local balance > 60%): 9151
Amount of unbalanced ones (local balance < 30%): 2004
Amount of unbalanced ones (local balance > 60%): 9151
Amount of unbalanced ones (local balance < 30%): 2004
Amount of unbalanced ones (local balance > 60%): 9149
Amount of unbalanced ones (local balance < 30%): 2003
Amount of unbalanced ones (local balance > 60%): 9149
Amount of unbalanced ones (local balance < 30%): 2002
Amount of unbalanced ones (local balance > 60%): 9149
Amount of unbalanced ones (local balance < 30%): 2003
Amount of unbalanced ones (local balance > 60%): 9149
Amount of unbalanced ones (local balance < 30%): 2004
Amount of unbalanced ones (local balance > 60%): 9146
Amount of unbalanced ones (local balance < 30%): 2007
Amount of unbalanced ones (local balance > 60%): 9131
Amount of unbalanced ones (local balance < 30%): 2004
Amount of unbalanced ones (local balance > 60%): 9132
Amount of unbalanced ones (local balance < 30%): 2003
Amount of unbalanced ones (local balance > 60%): 9132
Amount of unbalanced ones (local balance < 30%): 2005
Amount of unbalanced ones (local balance > 60%): 9133
Amount of unbalanced ones (local balance < 30%): 2003
Amount of unbalanced ones (local balance > 60%): 9133
Amount of unbalanced ones (local balance < 30%): 2001
Amount of unbalanced ones (local balance > 60%): 9131
Amount of unbalanced ones (local balance < 30%): 2006
Amount of unbalanced ones (local balance > 60%): 9126
Amount of unbalanced ones (local balance < 30%): 2008
Amount of unbalanced ones (local balance > 60%): 9126
Amount of unbalanced ones (local balance < 30%): 2016
Amount of unbalanced ones (local balance > 60%): 9101
Amount of unbalanced ones (local balance < 30%): 2016
Amount of unbalanced ones (local balance > 60%): 9102
Amount of unbalanced ones (local balance < 30%): 2014
Amount of unbalanced ones (local balance > 60%): 9083
Amount of unbalanced ones (local balance < 30%): 2016
Amount of unbalanced ones (local balance > 60%): 9088
Amount of unbalanced ones (local balance < 30%): 2016
Amount of unbalanced ones (local balance > 60%): 9089
Amount of unbalanced ones (local balance < 30%): 2017
Amount of unbalanced ones (local balance > 60%): 9088
Amount of unbalanced ones (local balance < 30%): 2017
Amount of unbalanced ones (local balance > 60%): 9059
Amount of unbalanced ones (local balance < 30%): 2019
Amount of unbalanced ones (local balance > 60%): 9059
Amount of unbalanced ones (local balance < 30%): 2021
Amount of unbalanced ones (local balance > 60%): 9060
Amount of unbalanced ones (local balance < 30%): 2022
Amount of unbalanced ones (local balance > 60%): 9060
Amount of unbalanced ones (local balance < 30%): 2021
Amount of unbalanced ones (local balance > 60%): 9060
Amount of unbalanced ones (local balance < 30%): 2019
Amount of unbalanced ones (local balance > 60%): 9059
Amount of unbalanced ones (local balance < 30%): 2015
Amount of unbalanced ones (local balance > 60%): 9057
Amount of unbalanced ones (local balance < 30%): 2014
Amount of unbalanced ones (local balance > 60%): 9057
Amount of unbalanced ones (local balance < 30%): 2014
Amount of unbalanced ones (local balance > 60%): 9056
Amount of unbalanced ones (local balance < 30%): 2015
Amount of unbalanced ones (local balance > 60%): 9055
Amount of unbalanced ones (local balance < 30%): 2015
Amount of unbalanced ones (local balance > 60%): 9055
Amount of unbalanced ones (local balance < 30%): 2016
Amount of unbalanced ones (local balance > 60%): 9055
Amount of unbalanced ones (local balance < 30%): 2016
Amount of unbalanced ones (local balance > 60%): 9054
Amount of unbalanced ones (local balance < 30%): 2015
Amount of unbalanced ones (local balance > 60%): 9055
Amount of unbalanced ones (local balance < 30%): 2015
Amount of unbalanced ones (local balance > 60%): 9056
Amount of unbalanced ones (local balance < 30%): 2018
Amount of unbalanced ones (local balance > 60%): 9054
Amount of unbalanced ones (local balance < 30%): 2019
Amount of unbalanced ones (local balance > 60%): 9053
Amount of unbalanced ones (local balance < 30%): 2020
Amount of unbalanced ones (local balance > 60%): 9039
Amount of unbalanced ones (local balance < 30%): 2021
Amount of unbalanced ones (local balance > 60%): 9029
Amount of unbalanced ones (local balance < 30%): 2022
Amount of unbalanced ones (local balance > 60%): 9026
Amount of unbalanced ones (local balance < 30%): 2022
Amount of unbalanced ones (local balance > 60%): 9028
Amount of unbalanced ones (local balance < 30%): 2022
Amount of unbalanced ones (local balance > 60%): 9028
Amount of unbalanced ones (local balance < 30%): 2019
Amount of unbalanced ones (local balance > 60%): 9028
Amount of unbalanced ones (local balance < 30%): 2021
Amount of unbalanced ones (local balance > 60%): 9027
Amount of unbalanced ones (local balance < 30%): 2023
Amount of unbalanced ones (local balance > 60%): 9027
Amount of unbalanced ones (local balance < 30%): 2022
Amount of unbalanced ones (local balance > 60%): 9026
Amount of unbalanced ones (local balance < 30%): 2023
Amount of unbalanced ones (local balance > 60%): 9014
Amount of unbalanced ones (local balance < 30%): 2023
Amount of unbalanced ones (local balance > 60%): 9008
Amount of unbalanced ones (local balance < 30%): 2024
Amount of unbalanced ones (local balance > 60%): 9007
Amount of unbalanced ones (local balance < 30%): 2023
Amount of unbalanced ones (local balance > 60%): 9007
Amount of unbalanced ones (local balance < 30%): 2024
Amount of unbalanced ones (local balance > 60%): 9007
Amount of unbalanced ones (local balance < 30%): 2024
Amount of unbalanced ones (local balance > 60%): 9008
Amount of unbalanced ones (local balance < 30%): 2025
Amount of unbalanced ones (local balance > 60%): 9008
Amount of unbalanced ones (local balance < 30%): 2026
Amount of unbalanced ones (local balance > 60%): 9009
Amount of unbalanced ones (local balance < 30%): 2025
Amount of unbalanced ones (local balance > 60%): 9009
Amount of unbalanced ones (local balance < 30%): 2024
Amount of unbalanced ones (local balance > 60%): 9009
Amount of unbalanced ones (local balance < 30%): 2024
Amount of unbalanced ones (local balance > 60%): 9013
Amount of unbalanced ones (local balance < 30%): 2025
Amount of unbalanced ones (local balance > 60%): 9013
Amount of unbalanced ones (local balance < 30%): 2028
Amount of unbalanced ones (local balance > 60%): 9005
Amount of unbalanced ones (local balance < 30%): 2029
Amount of unbalanced ones (local balance > 60%): 9003
Amount of unbalanced ones (local balance < 30%): 2030
Amount of unbalanced ones (local balance > 60%): 9001
Amount of unbalanced ones (local balance < 30%): 2030
Amount of unbalanced ones (local balance > 60%): 9002
Amount of unbalanced ones (local balance < 30%): 2034
Amount of unbalanced ones (local balance > 60%): 9002
Amount of unbalanced ones (local balance < 30%): 2030
Amount of unbalanced ones (local balance > 60%): 9003
Amount of unbalanced ones (local balance < 30%): 2029
So the script definitely works fine!
The goal to get balanced channels can be reached through fees!
// LNBIG owner
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment