Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
8fd6882
Merge pull request #1 from lightningd/balancesharing-plugin
renepickhardt May 9, 2020
a7df350
first version of data flow
renepickhardt May 9, 2020
315ad1a
fix merge conflicts
renepickhardt May 9, 2020
d6900b6
fixed typo
renepickhardt May 9, 2020
894d7cc
add checks for peer and channels
qrest May 9, 2020
2246628
Merge pull request #2 from qrest/balancesharing-plugin
renepickhardt May 9, 2020
1655925
remove channel checks in 'foafbalance'
qrest May 9, 2020
2091b92
wip for merging
renepickhardt May 9, 2020
b0f001e
Merge branch 'balancesharing-plugin' into balancesharing-plugin
renepickhardt May 9, 2020
7217d3d
Merge pull request #3 from qrest/balancesharing-plugin
renepickhardt May 9, 2020
c99335d
added functionality to compute locally on which channels a node is wi…
renepickhardt May 9, 2020
9197619
add first encoding functions
qrest May 9, 2020
9a8c273
Merge branch 'balancesharing-plugin' of https://github.com/renepickha…
qrest May 9, 2020
ecb71e0
Merge pull request #4 from qrest/balancesharing-plugin
renepickhardt May 10, 2020
054c234
commit before merge
renepickhardt May 10, 2020
2673fd3
Merge branch 'balancesharing-plugin' of https://github.com/renepickha…
renepickhardt May 10, 2020
5a4a4bc
parse input for 'foafbalance'
qrest May 10, 2020
86095bf
Merge branch 'balancesharing-plugin' of https://github.com/renepickha…
qrest May 10, 2020
829ee0e
worked on encoding
renepickhardt May 10, 2020
8126229
fix en- and decoding
qrest May 10, 2020
d463b95
Merge branch 'balancesharing-plugin' of https://github.com/renepickha…
qrest May 10, 2020
6967d72
plug in decoding on receiver side
qrest May 10, 2020
402decd
cleanup
qrest May 10, 2020
418019f
more cleanup
qrest May 10, 2020
f98b83e
added chain_hash to query
qrest May 10, 2020
34fb2d0
add inital reply encoding
qrest May 10, 2020
2c1d6f6
change to unsigned long long for timestamp
qrest May 10, 2020
5517b91
Merge pull request #5 from qrest/balancesharing-plugin
renepickhardt May 10, 2020
5b5fdb6
WIP add path finding
renepickhardt May 10, 2020
0c459a9
add pack_channels function
qrest May 10, 2020
ba96d06
Merge pull request #6 from qrest/balancesharing-plugin
renepickhardt May 10, 2020
1f72d28
current
renepickhardt May 10, 2020
cdfeeb2
fix error in encoding
qrest May 10, 2020
fa07127
Merge pull request #7 from qrest/balancesharing-plugin
renepickhardt May 10, 2020
c7c2a94
more or less final version?
renepickhardt May 10, 2020
d9225e1
stable version without indexing the channels as a local graph
renepickhardt May 23, 2020
c809e02
addedmore info for the readme
renepickhardt May 23, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion balancesharing/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
# Balance Sharin Plugin
# Balance Sharing Plugin

This is Work in Progress by Michael Ziegler and Rene Pickhadt from NTNU to extend the Lightning Network Protocol with the ability of nodes sharing their balance information with neighbors. This is needed to provide JIT-Routing functionality. Read more on: https://wiki.fulmo.org/wiki/Challenges_May_2020#JIT_Routing_.2F_Sharing_balance_information

The current plugin is just able to encode and decode two new custom messages and send them out. The query message is exposed via the apicommand `lightning-cli foafbalance {direction} {amt}`

Currently the results are writen to the logfile. in future they need to be cached and processed. In particular if the command line API should continue to exist (we recommend against this) there should be timeout of the queries.

## Installation


Expand All @@ -27,6 +31,12 @@ note that if you use the autoreload plugin you MUST pass the path the the balanc
lightningd --network regtest --autoreload-plugin=/path/to/plugins/balancesharing/balancesharing.py
```

if you want to run in regtest without setting up your own lightning cannels you can put 2 files in this directory which are the output from `listchannels` and `listfunds` command. by executing the following two commands on some lightning node and copy the two files.

```
lightning-cli listfunds > funds.json
lightning-cli listchannels > channels.json
```

For general plugin installation instructions see the repos main
[README.md](https://github.com/lightningd/plugins/blob/master/README.md#Installation)
Expand Down
Loading