Michael Schmoock
5e00474390
rebalance: test rebalanceall starts without errors
2021-02-03 14:17:20 +01:00
Michael Schmoock
c6c44aca8e
rebalance: test manaual rebalancing
2021-02-03 14:17:20 +01:00
Michael Schmoock
f55df28bcd
rebalance: adds a very basic rebalanceall test
2021-02-03 14:17:20 +01:00
Michael Schmoock
239a21ab6b
rebalance: autofix code nits
2021-02-03 14:17:20 +01:00
Michael Schmoock
3cbe497976
rebalance: fix division by zero
2021-02-03 14:17:20 +01:00
Peter Sebastian Nordholt
a03557044c
Fix missing parser error
...
Fixes an exception thrown for not having a parser for message type 4103. These messages are now just ignored (maybe should be handled somehow?)
2021-02-03 13:51:12 +01:00
3nprob
c7f0823c14
Add Dockerfile
2021-02-03 13:50:44 +01:00
Michael Schmoock
4a9df896ad
backup: fix deadlock by removing the sqlite3 check
...
I commented out that check and placed a NOTE that future developers
to see upfront putting in RPC stuff in init is potentially bad.
2021-02-01 14:33:46 +01:00
Christian Decker
abbdeabec6
historian: Add a readme
2021-01-22 18:00:50 +01:00
Christian Decker
5236850245
historian: Rename the parser module to gossipd
...
We were getting a couple of path/import conflicts, renaming just to be
safe.
2021-01-22 18:00:50 +01:00
Christian Decker
a9c14da33b
historian: Fix the short channel ID output
...
It's 2 bytes not 1
2021-01-22 18:00:50 +01:00
Christian Decker
487e927116
historian: Make the GossipStream seekable
2021-01-22 18:00:50 +01:00
Christian Decker
b7f6796315
historian: Make the destination parameter to snapshot load optional
...
This is a rather long option, and if `lightning-cli` is configured
correctly we should be able to extract this information directly from
it without problems. This adds auto-discovery based on `lightning-cli`
which will to the right thing™
2021-01-22 18:00:50 +01:00
Christian Decker
b5038e526a
historian: Ensure parser is called with bytes
2021-01-22 18:00:50 +01:00
Christian Decker
4630eba3f8
historian: Refactor the snapshot message retrieval
...
We're going to use it in the web interface soon.
2021-01-22 18:00:50 +01:00
Christian Decker
3daa588be0
historian: Remove DATETIME conversion and add timestamp to grouping
...
Postgres requires the HAVING statement to match a GROUP BY statement and the
DATETIME function doesn't exist on postgres.
2021-01-22 18:00:16 +01:00
Christian Decker
91f7eafabb
historian: Use LargeBinary instead of BLOB for portability
2021-01-22 18:00:16 +01:00
Christian Decker
3f5dc35ab1
historian: Add backup command for lnresearch
2021-01-22 18:00:16 +01:00
Christian Decker
474a2011d1
historian: Add assertion on the gossip type when decoding
2021-01-22 18:00:16 +01:00
Christian Decker
b1338ef5d4
historian: Add loading functionality to historian-cli
2021-01-22 18:00:16 +01:00
Christian Decker
2e0963cf40
historian: Switch to nested queries from massive joins
...
Not only is this more correct, but it's also quicker, since we avoid the huge
joins.
2021-01-22 18:00:16 +01:00
Christian Decker
c22562bd7f
historian: Add a command to read a snapshot and hexdump it to stdout
2021-01-22 18:00:16 +01:00
Christian Decker
efdf985352
historian: First version of the cli
2021-01-22 18:00:16 +01:00
Michael Schmoock
92aafe7404
chore: rename feeadjustertoggle to feeadjuster-toggle
2021-01-19 12:17:30 +01:00
Gálli Zoltán
b80c558ebd
rebalance: better feeadjuster integration
...
- turns off feeadjuster's automatic fee updates while rebalance running
- runs feeadjust only once, at the end
- measures time for rebalance
2021-01-19 10:23:34 +01:00
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