Christian Decker
a68758b1d0
backup: Implement the restore method for all backends
...
Also implements the `stream_changes` function in the FileBackend which is used
by `restore` to get all the changes.
2020-04-12 19:35:21 +02:00
Christian Decker
caa5c0a16b
backup: Add the version to the FileBackend format
2020-04-12 19:35:21 +02:00
Christian Decker
8f2eea2840
backend: Make sure that initialize initializes the metadata
2020-04-12 19:35:21 +02:00
Christian Decker
1e6b55b3cb
backup: If a database exists write an intial snapshot
2020-04-12 19:35:21 +02:00
Christian Decker
a44284d04d
pytest: Test starting without having initialized the backup
2020-04-12 19:35:21 +02:00
Christian Decker
c8502cd09d
backup: Add missing Click dependency for the backup-cli tool
2020-04-12 19:35:21 +02:00
Christian Decker
4c146bf2a4
backend: Use th backup URL in backup-cli and add snapshot type to FileBackend
2020-04-12 19:35:21 +02:00
Christian Decker
c58e675877
backup: Ensure at startup that the backup backend was initialized
2020-04-12 19:35:21 +02:00
Christian Decker
97c702731a
backup: Add a bit more documentation to the abstract backend class
2020-04-12 19:35:21 +02:00
Christian Decker
4e19c32444
backup: Add backup-cli tool and use it to initialize the backups
2020-04-12 19:35:21 +02:00
Christian Decker
c049069cff
backup: Initial version of the backup plugin
2020-04-12 19:35:21 +02:00
Christian Decker
c3c207967f
Update pillow to a secure version
2020-04-04 19:20:03 +02:00
Christian Decker
02d41edd10
Update twisted to a secure version
2020-04-04 19:20:03 +02:00
darosior
714c28c369
sauron: cleanups: better errors, no assert, no useless json.loads
2020-04-03 16:29:07 +02:00
darosior
970a965430
sauron: use esplora to get raw blocks
2020-04-03 16:29:07 +02:00
darosior
cdebe828ae
sauron: add a basic README
2020-03-30 21:54:34 +02:00
darosior
3ae9b3259c
Add Sauron to the README
2020-03-30 21:54:34 +02:00
darosior
8066e5f803
sauron: adapt feerate gathering to the new API.
2020-03-30 21:54:34 +02:00
darosior
e6cf4e13bd
sauron: change gettxout to getutxout
2020-03-16 12:34:32 +01:00
darosior
d104baa672
Initial version of an esplora backend plugin
2020-03-16 12:34:32 +01:00
dependabot[bot]
e56c07eac1
build(deps): bump psutil from 5.6.2 to 5.6.6 in /autoreload
...
Bumps [psutil](https://github.com/giampaolo/psutil ) from 5.6.2 to 5.6.6.
- [Release notes](https://github.com/giampaolo/psutil/releases )
- [Changelog](https://github.com/giampaolo/psutil/blob/master/HISTORY.rst )
- [Commits](https://github.com/giampaolo/psutil/compare/release-5.6.2...release-5.6.6 )
Signed-off-by: dependabot[bot] <support@github.com >
2020-03-16 11:14:47 +01:00
darosior
ba5500ddd8
donations: bump flask-wtf requirement
2020-02-14 10:23:25 +01:00
Christian Decker
3290e4e456
noise: Add a Payment class for keysend payments
...
Suggested-by: Richard Bondi <@rsbondi>
2020-02-04 12:32:07 +01:00
Christian Decker
41aeed024d
noise: Don't assume that we have the required fields
2020-02-04 12:32:07 +01:00
Christian Decker
f80cc060b9
noise: Do not expect TlvPayloads without checking
...
Suggested-by: @darosior
2020-02-04 12:32:07 +01:00
Christian Decker
3a39b61ab7
noise: Remove overeager limitation for varints
2020-02-04 12:32:07 +01:00
Christian Decker
c3e316d79e
noise: Sort TlvPayload fields before serializing
...
This is part of the spec
2020-02-04 12:32:07 +01:00
Christian Decker
11a946f152
noise: Add timestamp to payload
2020-02-04 12:32:07 +01:00
Christian Decker
f58d0292a5
noise: Don't depend on unstable pyln-proto features
2020-02-04 12:32:07 +01:00
Christian Decker
d2ca541728
noise: Added keysend functionality to attach a payment to a message
2020-02-04 12:32:07 +01:00
Christian Decker
528aa8410b
noise: Implement signature verification of chat messages
...
Since we don't pass the public key we just rely on the pubkey recovery and the
`checkmessage` interface to tell us whether it is a publicly known `node_id`
or not.
2020-02-04 12:32:07 +01:00
Christian Decker
3d3c7f75ba
noise: Allow malformed onion if it's the last hop
...
This was counted as a failure before, but it actually means we delivered
successfully.
2020-02-04 12:32:07 +01:00
Christian Decker
374fdadcbe
noise: Use the onion classes and fix the length prefix issue
2020-02-04 12:32:07 +01:00
Christian Decker
ac49e8bd07
noise: Initial version of the noise chat plugin
...
Based on the WhatSat idea by @joostjager, this plugin implements a simple chat
protocol based on top of `createonion` and `sendonion`.
2020-02-04 12:32:07 +01:00
Christian Decker
1c1b8fe431
coverage: Switch to codecov.io
2020-01-25 20:52:25 +01:00
Christian Decker
7b0525a5bc
travis: Add missing mrkd dependency
2020-01-25 18:02:11 +01:00
Christian Decker
1feadc8850
coverage: Add coveralls.io badge
2020-01-25 17:48:29 +01:00
Christian Decker
52082bebfe
travis: Update psycopg2-binary dependency
2020-01-25 17:48:29 +01:00
Christian Decker
63bdfad07f
travis: Added log folding so we don't have to scroll as much
2020-01-25 17:48:29 +01:00
Christian Decker
6754c28ca8
travis: Added coverage for plugins and coveralls integration
2020-01-25 17:48:29 +01:00
Kristaps Kaupe
44ca145524
Add link to plugin collection emulating some of the LND (lncli) commands on c-lightning
2020-01-25 13:51:33 +01:00
Christian Decker
ea8e24eb56
fixup! jitrebalance: First version of the JITrebalance plugin
2020-01-07 21:21:11 +01:00
Christian Decker
504d15bfbf
jitrebalance: Refactor code and implement retry logic
2020-01-07 21:21:11 +01:00
Christian Decker
9ef45ae83c
jitrebalance: Skip tests if not developer, gossip is too slow
2020-01-07 21:21:11 +01:00
Christian Decker
7479c342c4
jitrebalance: Make the plugin TLV compatible
2020-01-07 21:21:11 +01:00
Christian Decker
c453e8982f
jitrebalance: First version of the JITrebalance plugin
...
A simple implementation of a jit-rebalance plugin based in the idea of
@renepickhardt. Upon receiving an HTLC that we are supposed to forward check
whether the channel has sufficient capacity to forward. If that's not the case
we need to rebalance. For this we compute a circular route through some other
nodes, returning funds on the edge we are supposed to use when
forwarding. This means we rebalance the channel just enough to make forwarding
possible.
This only implements the simple version, without FOAF advertisements of free
rebalancings, but it already works rather nicely.
Suggested-by: Rene Pickhardt <@renepickhardt>
Signed-off-by: Christian Decker <@cdecker>
2020-01-07 21:21:11 +01:00
Christian Decker
c6e3b9f011
pytest: Rename start tests to reflect the plugin under test
2019-12-27 17:17:58 +01:00
darosior
ba85a5796a
README: Add csvexportpays to the table
...
And fix indentation in test sample
2019-12-27 17:17:58 +01:00
darosior
e574a717b1
Add pyln-client requirement to all plugins
2019-12-27 17:17:58 +01:00
darosior
e426f6738e
Update to pyln-client
...
This updates all plugins *which already have requirements.txt* to
pyln-client from pylightning.
2019-12-27 17:17:58 +01:00