Commit Graph

56 Commits

Author SHA1 Message Date
Joe Netti
b87a56752c updated graphql submodule. Added new jwt-factory submodule 2019-05-10 17:06:45 +02:00
Henrik Jonsson
023da9c36b prometheus: Fix channel_id name and prevent crashing
With c-lightning v0.7.0, there seems to be no `short_channel_id`
key present in the input sent to the `prometheus.py` script when
it is is called via the `plugin` config value for c-lightning
when a channel is opened.

Without this change, the script throws `500 Internal Server` error
when doing `$ lightning-cli fundchannel <id> <sats>`.

A sample JSON messages passed to the plugin is:

```
{
        'state': 'CHANNELD_AWAITING_LOCKIN',
        'scratch_txid': '120ad265b66aa0c4bbb5ff50a23ca85463337fb8b58b395f3811918610686a734',
        'owner': 'lightning_channeld',
        'channel_id': 'eda784df73aa105d728a0d9fee6ff450eeeac78aa57d3218f7b0dd89b2bd20f1',
        'funding_txid': 'f120bdb2eec4b0f718327dc58cc7eaee5dd46fa19f0d8a725d10ff73df84a7ed',
        'private': False,
        'funding_allocation_msat': {
                '03584abd04d69168600ff0ff5d11723d324f2deadbeefcbb84804580e344af235e': 0,
                '03a9c46ddacd373f78b6679f9dec6adb10b3ddeadbeef2a685e09b2ce6101bc18c': 100000000
        },
        'funding_msat': {
                '03584abd04d69168600340ad5d11723d324f2deadbeefcbb84804580e344af235e': '0msat',
                '03a9c46ddacd373f78b6679f9dec6adb10b3ddeadbeef2a685e09b2ce6101bc18c': '100000000msat'
        },
        'msatoshi_to_us': 100000000,
        'to_us_msat': '100000000msat',
        'msatoshi_to_us_min': 100000000,
        'min_to_us_msat': '100000000msat',
        'msatoshi_to_us_max': 100000000,
        'max_to_us_msat': '100000000msat',
        'msatoshi_total': 100000000,
        'total_msat': '100000000msat',
        'dust_limit_satoshis': 546,
        'dust_limit_msat': '546000msat',
        'max_htlc_value_in_flight_msat': 18446744073709551615,
        'max_total_htlc_in_msat': '18446744073709551615msat',
        'their_channel_reserve_satoshis': 1000,
        'their_reserve_msat': 1000000msat,
        'our_channel_reserve_satoshis': 1000,
        'our_reserve_msat': '1000000msat',
        'spendable_msatoshi': 99000000,
        'spendable_msat': '99000000msat',
        'htlc_minimum_msat': 0,
        'minimum_htlc_in_msat': '0msat',
        'their_to_self_delay': 144,
        'our_to_self_delay': 144,
        'max_accepted_htlcs': 483,
        'status': ['CHANNELD_AWAITING_LOCKIN:Reconnected, and reestablished.', 'CHANNELD_AWAITING_LOCKIN:Funding needs more confirmations.'],
        'in_payments_offered': 0,
        'in_msatoshi_offered': 0,
        'in_offered_msat': '0msat',
        'in_payments_fulfilled': 0,
        'in_msatoshi_fulfilled': 0,
        'in_fulfilled_msat': '0msat',
        'out_payments_offered': 0,
        'out_msatoshi_offered': 0,
        'out_offered_msat': '0msat',
        'out_payments_fulfilled': 0,
        'out_msatoshi_fulfilled': 0,
        'out_fulfilled_msat': '0msat',
        'htlcs': []
}
```
2019-05-10 17:05:08 +02:00
Christian Decker
0ac54eecfd autoreload: Add the autoreload plugin to the README
Signed-off-by: Christian Decker <decker.christian@gmail.com>
2019-05-10 10:14:06 +02:00
Christian Decker
b526277edf autoreload: Add an autoreload plugin to restart plugins on change
A simple plugin that can be used to speed plugin development by having the
plugin under development be reloaded whenever its executable changes, or when
triggered automatically.

Signed-off-by: Christian Decker <decker.christian@gmail.com>
2019-05-10 10:14:06 +02:00
Christian Decker
54efa366e3 probe: Actually add a sensible return value to the probe method
It was returning `null` and we'd have to check the logs or the DB for the
result. This makes it just a bit easier to see what happens.

Signed-off-by: Christian Decker <decker.christian@gmail.com>
2019-05-09 12:46:30 +02:00
Michael Schmoock
b515dbe59a fix: sendinvoiceless adds receivers fee 2019-05-08 23:33:58 +02:00
Michael Schmoock
a35dfc5a5d doc: command receivedinvoiceless 2019-05-08 23:33:58 +02:00
Michael Schmoock
11ec378cfb feat: sendinvoiceless list payments
This commit will add the cli command `receivedinvoiceless`
which will show you the deteceted payments made using this method.
2019-05-08 23:33:58 +02:00
Gálli Zoltán
5416decde2 rebalance: exclude all own channels from getroute
fix for #17
2019-05-08 12:47:59 +02:00
Rene Pickhardt
4fdaaa461d enhanced the README.md file
added another community repo, a tutorial video for pypi lightning and in particular added instructions how to run and activate plugins.
2019-05-07 15:45:35 +02:00
Gálli Zoltán
c70367b231 sendinvoiceless: README.md update
- short description and link in the the top-level README.md
- mention known weaknesses
2019-05-02 13:09:35 +02:00
Gálli Zoltán
b4f1e0cab4 sendinvoiceless: workround for clightning #2601
review fix, thanks to @m-schmoock
2019-05-02 13:09:35 +02:00
Gálli Zoltán
9815483491 invoiceless payment plugin
- sends payment without an invoice from the receiving node
- uses circular payments: takes the money to the target node, pays in the form of routing fee, and brings some change back
- no plugin/update required on the receiving side
2019-05-02 13:09:35 +02:00
Michael Schmoock
799eb51528 fix: workaround for outdated pylightning versions #2601 2019-05-01 22:38:51 +02:00
Michael Schmoock
e7adbfa161 doc: update rebalance README.md 2019-05-01 22:38:51 +02:00
Michael Schmoock
5efb86da46 feat: calculate optional amount 2019-05-01 22:38:51 +02:00
Michael Schmoock
ee9eaa9e31 chore: renames channel_id to scid where aprropriate 2019-05-01 22:38:51 +02:00
Michael Schmoock
3d9b3c8a22 chore: rewording peer2channel method to peer_from_scid 2019-05-01 22:38:51 +02:00
Christian Decker
187c66a9b1 autopilot: Add plugin binary and README file
Signed-off-by: Christian Decker <decker.christian@gmail.com>
2019-04-29 15:42:01 +02:00
Christian Decker
2667de5d21 readme: Updated readme to include graphql and rebalance plugins
Signed-off-by: Christian Decker <decker.christian@gmail.com>
2019-04-29 15:29:24 +02:00
Christian Decker
a4068a007b graphql: Renamed graphql plugin to correct directory 2019-04-29 15:26:17 +02:00
Joe Netti
b6fb40b535 created git module for c-lightning-api plugin (#7)
* added c-lightning-graphql as a submodule

Co-Authored-By: nettijoe96 <nettijoe@gmail.com>
2019-04-29 15:22:44 +02:00
Christian Decker
e0f02db123 Update summary/summary.py
Co-Authored-By: Johnstedt <John-John@Markstedts.org>
2019-04-23 15:36:05 +02:00
John-John Markstedt
6b1f7901bc raw response fix 2019-04-23 15:36:05 +02:00
Michael Schmoock
7c392cb2dd feat: add scid to summary output
Improves some minor output issues:

 - Adds short channel id, so it can be copy and pasted for rebalancing
 - renames `channels_key` to `channels_flags`
 - changes flags round rackets (PO) to squace brackets [PO]
 - Always outputs flags even if not set [__] so things are always aligned
 - Removes the colon ':' and always prints a space
   this also helps when copy and pasting in a terminal
2019-04-23 15:33:50 +02:00
Joe Netti
78f0e96c5d fixed graphing bug that was caused by float->int conversion without rounding. Added newline to graph output 2019-04-17 15:23:40 +02:00
Rusty Russell
b286d7b47e summary: fix bug where we're connected to a node without node_announce
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2019-04-16 13:51:37 +02:00
Christian Decker
734cc0da95 Merge pull request #6 from gallizoltan/master
rebalance plugin in python
2019-04-16 13:48:52 +02:00
Gálli Zoltán
f22615ed65 using Millisatoshi 2019-04-16 12:05:19 +02:00
Gálli Zoltán
22f5579365 rebalance plugin in python
- this plugin helps to move some liquidity between your channels using circular payments
- previous conversations here: https://github.com/ElementsProject/lightning/pull/2567
2019-04-16 11:59:41 +02:00
Christian Decker
86b5413ab5 readme: Add a link to sitzprobe 2019-04-01 18:38:27 +02:00
Christian Decker
4542804bcf sitzprobe: Add sitzprobe by @niftynei as a submodule 2019-04-01 18:35:39 +02:00
Christian Decker
993d0ee7da pytest: Preparing to run integration tests using pytest 2019-03-30 00:03:16 +01:00
Christian Decker
2ec37eed31 readme: Added some resources and pointers to external collections
@conscott has some really nice plugins, so we link to them :-)

Signed-off-by: Christian Decker <decker.christian@gmail.com>
2019-03-28 17:17:00 +01:00
Christian Decker
d863ebff00 readme: Added the donations plugin to the readme. 2019-03-28 16:09:12 +01:00
Christian Decker
92d2bbe262 donations: Fixed up the README a bit 2019-03-28 16:07:51 +01:00
Christian Decker
638c24cb41 donations: Imported Rene's donation plugin
This comes from a stale PR on the c-lightning issue tracker and after talking
with Rene, I decided to give it an official place to live.
2019-03-28 16:00:47 +01:00
Christian Decker
478bec2fb5 autopilot: Add a direct copy of Rene's original autopilot code
Just copying it over, not pluginizing it yet.
2019-03-26 14:00:27 +01:00
Christian Decker
080b2bcaf8 readme: Added Rusty's summary plugin to the README
Signed-off-by: Christian Decker <decker.christian@gmail.com>
2019-03-26 12:44:47 +01:00
Christian Decker
96f617da75 prom: Rename metrics to be less confusing
The metrics should always have a name that uniquely identifies the monitored
system and the metric on that system. `node` just doesn't say much if
presented along with metrics from other systems.

Signed-off-by: Christian Decker <decker.christian@gmail.com>
2019-03-26 12:43:45 +01:00
Christian Decker
a43ad38dee Merge pull request #1 from rustyrussell/summary
Summary: simple plugin which got out of hand.
2019-03-05 11:30:38 +01:00
Rusty Russell
ff67b26841 summary: fix num_gossipers calculation.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2019-03-05 14:30:24 +10:30
Rusty Russell
ac1478f5a5 summary: add offline annotation.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2019-03-05 14:22:10 +10:30
Rusty Russell
16dc96263a Summary: make bar graphs prettier. Unicode FTW!
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2019-03-05 14:05:04 +10:30
Rusty Russell
5cf676f814 Summary: cleanups suggested by @cdecker
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2019-03-03 10:37:07 +10:30
Rusty Russell
cded1d2f1d Summary: add requirements.txt
Recommended-by: @cdecker
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2019-03-02 09:12:56 +10:30
Christian Decker
3ca5056ebd prometheus: Add a prometheus plugin exposing channel and peer stats
Signed-off-by: Christian Decker <decker.christian@gmail.com>
2019-02-26 18:43:51 +01:00
Rusty Russell
fcb4018bd4 summary: add bar graphs showing balances.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2019-02-26 16:37:59 +10:30
Rusty Russell
6063f673cb summary: first cut of my sumary plugin (needs c-lightning 0.7-rc2 or above)
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2019-02-26 16:16:36 +10:30
Christian Decker
09faaeb759 probe: Run probes in their own thread
Signed-off-by: Christian Decker <decker.christian@gmail.com>
2019-02-20 20:10:39 +01:00