Gálli Zoltán
7c8840266d
feeadjuster: no underscore in method name
...
cannot call methods from python framework with underscore in its name
6f924e63c2/contrib/pyln-client/pyln/client/lightning.py (L316)
2021-01-18 10:56:23 +01:00
Christian Decker
75ddf53400
backup: Add a test for compactions
2021-01-16 13:29:37 +01:00
Christian Decker
c32894bd08
backup: Implement compaction for FileBackend
...
Compaction for the FileBackend involves restoring the DB from the
backup, up to the penultimate state, then taking a snapshot of the
restored DB, and then appending the last change to the backup. The new
backup is then atomically swapped with the old backup.
The special treatment for the last change is necessary as usual due to
the rewind functionality, otherwise we'd be in an un-rewindable state,
which can cause trouble if c-lightning died without committing the
last change.
2021-01-16 13:29:37 +01:00
Christian Decker
2037240353
backup: Add scaffolding for compactions
2021-01-16 13:29:37 +01:00
Christian Decker
d28d68cb16
backup: Ensure entries in the tx are bytes
...
We could end up in some cases with string-encoded statements.
2021-01-16 13:29:37 +01:00
Rusty Russell
2bee4a0fc2
currencyrate: feedback from Christian and m-schmook.
...
1. Use requests.packages.urllib3.util.retry for retries.
2. rename get_currencyrate parameters to match Source names.
3. Rename "currencyrate" to "currencyrates".
4. Remove unused packaging package from requirements.txt
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au >
2021-01-14 18:35:49 +01:00
Rusty Russell
f16b78996f
currencyrate: add three new sources, git credit in README.md
...
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au >
2021-01-14 18:35:49 +01:00
Rusty Russell
f136e5942b
currencyrate: fix default handling for 0.9.3.
...
We said default was '', which becomes [''].
2021-01-14 18:35:49 +01:00
Rusty Russell
eb31bfdf2e
currencyconvert: raise more meaningful exception on unknown currencies.
...
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au >
2021-01-14 18:35:49 +01:00
Rusty Russell
d0839ff1f9
README.md: add currencyrate
...
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au >
2021-01-14 18:35:49 +01:00
Rusty Russell
02287e194d
currencyrate: support multiple options for recent lightningd.
...
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au >
2021-01-14 18:35:49 +01:00
Rusty Russell
db5ca7f64a
currencyrate: new plugin to do currency conversions.
...
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au >
2021-01-14 18:35:49 +01:00
Gálli Zoltán
bfb1cf5d27
feeadjuster toggle
...
possibility to turn off the forward event with config or plugin method
2021-01-14 12:53:32 +01:00
Christian Decker
51adde1f90
gci: Disable Junit report processing, it's broken
2021-01-14 11:34:26 +01:00
Christian Decker
a097606495
ci: Increase timeout so we don't kill tests too often
2021-01-13 11:23:56 +01:00
Christian Decker
ce9aaebad4
noise: Disable timing out tests
...
squash! noise: Disable timing out tests
2021-01-13 11:23:56 +01:00
Christian Decker
cff243d5fb
drain: Mark the tests as developer-only
...
They were timing out creating the network.
2021-01-13 11:23:56 +01:00
Christian Decker
d807acf2eb
gci: Use pytest-xdist since pytest-parallel seems to hang on timeout
2021-01-13 11:23:56 +01:00
Christian Decker
0c7a0b3a6c
gci: Use pytest-parallel instead of pytest-xdist
2021-01-13 11:23:56 +01:00
Christian Decker
3b002a5594
gci: Give jobs a reasonable name
2021-01-13 11:23:56 +01:00
Christian Decker
0693e022ce
gci: Add developer and compat switches to matrix
2021-01-13 11:23:56 +01:00
Christian Decker
9b541961b5
gci: Re-enable DEVELOPER=0 builds
2021-01-13 11:23:56 +01:00
Christian Decker
37547d39ff
gci: Silence the xunit1 warning
2021-01-13 11:23:56 +01:00
Christian Decker
0b4f321fc7
ci: Add rerunfailures due to flaky tests
2021-01-13 11:23:56 +01:00
Christian Decker
708b382bd0
meta: JUnit reports as artifacts
2021-01-13 11:23:56 +01:00
Christian Decker
d7e831a315
gci: Disable DEVELOPER=0 test configs temporarily
2021-01-13 11:23:56 +01:00
Christian Decker
0a825d0c99
meta: Temporarily disable feeadjuster tests
...
An msat conversion seems to fail atm.
2021-01-13 11:23:56 +01:00
Christian Decker
c4f6688ffd
meta: Add locale to the environment when running tests
...
Click seems particularly upset if the locale is not UTF-8
2021-01-13 11:23:56 +01:00
Christian Decker
980ab57a88
meta: Exclude lightning directory from tests
...
On CI we clone into the CWD, which results in it being picked up by
our runner. Exclude it.
2021-01-13 11:23:56 +01:00
Christian Decker
430ccd5042
gci: Add Junit test reporting
2021-01-13 11:23:56 +01:00
Christian Decker
37651ba8e2
gci: Run on all pushes
2021-01-13 11:23:56 +01:00
Christian Decker
05eb36114e
gci: Remove pointless dependencies stage
2021-01-13 11:23:56 +01:00
Christian Decker
81ff069ded
gci: Use the new script to run the tests
2021-01-13 11:23:56 +01:00
Christian Decker
b0784e4ae2
meta: Add development requirements where missing
...
We're about to start testing in isolation, so better make sure that
each plugin can be tested in isolation.
2021-01-13 11:23:56 +01:00
Christian Decker
35dffbd71b
testing: Add a simple test to run each plugin in isolation
2021-01-13 11:23:56 +01:00
Sergi Delgado Segura
988060868a
Adds watchtower client to plugins
2021-01-08 15:19:26 +01:00
svewa
d48a8d128d
Update backup/README.md
...
Co-authored-by: Christian Decker <decker.christian@gmail.com >
2021-01-03 16:44:04 +01:00
Sven
a60d8efcf0
clarify backup location to be a file
2021-01-03 16:44:04 +01:00
alex
838c616037
onion routing
2020-12-21 15:18:26 +01:00
Christian Decker
9f412f900b
request-invoice: No need to kill background processes anymore
2020-12-21 15:18:26 +01:00
Christian Decker
75254a0936
request-invoice: Do not write default config if none exists yet
2020-12-21 15:18:26 +01:00
Christian Decker
63fae03667
request-invoice: Move to threading instead of multiprocessing
...
And we also clean up the python code to be more idiomatic.
2020-12-21 15:18:26 +01:00
alex
3980c0ac1b
cleanup
2020-12-21 15:18:26 +01:00
alex
89d9be2709
test added
2020-12-21 15:18:26 +01:00
alex
1f61280eef
request-invoice init
2020-12-21 15:18:26 +01:00
Gálli Zoltán
31dcc8cf09
feeadjuster: CI test fix
2020-12-21 15:00:38 +01:00
Gálli Zoltán
be10209355
feeadjuster: review fixes part 4
2020-12-21 15:00:38 +01:00
Gálli Zoltán
0dbafa1abd
feeadjuster: review fixes part 3
...
- enough liquidity feature is turned off by default
2020-12-21 15:00:38 +01:00
Gálli Zoltán
0a3fe31056
feeadjuster: review fixes part 2
2020-12-21 15:00:38 +01:00
Gálli Zoltán
fabb7d370a
feeadjuster: review fixes
2020-12-21 15:00:38 +01:00