Commit graph

12736 commits

Author SHA1 Message Date
Olaoluwa Osuntokun
10c5d6c0bd
monitoring+cfg: add new option to export gRPC perf metrics
In this commit, we expose a new monitoring option to allow users to
export gRPC performance metrics. These metrics can be used to see how
long certain calls are taking, the total amount of time spent handling
calls, broken down by service and also call.

This option consumes additional memory and disk space for the Prometheus
server, which is why we're opting to make it an optional flag.
2022-02-01 15:55:26 -08:00
Olaoluwa Osuntokun
a05b85686f
docs/release-notes: add roasbeef to 0.14.2 notes [skip-ci] 2022-01-26 14:18:29 -08:00
Oliver Gugger
0dae2d47f2
Merge pull request #6202 from guggero/itest-lnddir
lntest: set --lnddir instead of --datadir
2022-01-26 16:12:29 +01:00
Oliver Gugger
cc1f91b4d3
docs: add release notes 2022-01-26 11:38:44 +01:00
Oliver Gugger
bc3319a7d2
lntest: set --lnddir instead of --datadir
If we only set the --datadir flag then lnd will create empty directories
(for letsencrypt and watchtower client) in the default user's home .lnd
directory and will also pick up a config file from there if one exists.
To instruct lnd to only act within the temp itest directory, we need to
use the --lnddir flag instead.
Using the --lnddir flag also overwrites the TLS cert/key path and the
log dir, so we don't need to explicitly set those anymore.
But we need to make sure the node's variables point to the correct
default files/directories.
2022-01-26 11:37:10 +01:00
Olaoluwa Osuntokun
8c66e59eaa
Merge pull request #6200 from Roasbeef/routing-fee-fix
lnrpc: fix the existing routing fee inaccuracy
2022-01-25 16:46:01 -08:00
Olaoluwa Osuntokun
a57c650f96
Merge pull request #6158 from Crypt-iQ/breach_resolver_cancel
server+contractcourt: create breachResolver to ensure htlc's are failed back
2022-01-25 16:03:08 -08:00
Olaoluwa Osuntokun
40dd146358
docs/release-notes: add entry for fee rate bug fix and rpc change 2022-01-25 16:01:31 -08:00
Andras Banki-Horvath
9591e058ea itest: add test for the channel policy fee rate round down bug 2022-01-25 15:58:43 -08:00
ErikEk
ef1eff1058 lnrpc: fix the existing routing fee inaccuracy
When updating the channel routing policy, we encounter an inaccurate
precision error when calculating the routing fee. The issue stems from
the way the IEEE 754 standard works.

The solution here is to add a uint64 parameter (as mentioned in the
issue) and keep the float64 fee_rate parameter but rounding the product
of the base and fee rate.
2022-01-25 15:42:57 -08:00
eugene
64a51c1524 docs/release-notes: update notes for 0.14.2 2022-01-25 15:42:20 -05:00
eugene
ebaffb953a server+contractcourt: hand-off BreachCloseInfo to channel arbitrator
This also changes the chain_watcher and breacharbiter handoff. The
new logic ensures that the channel is only marked as pending closed
when the channel arbitrator has persisted the resolutions and commit
set.
2022-01-25 15:42:20 -05:00
eugene
b7407882ac contractcourt: create breachResolver if BreachResolution present
Also transitions to the proper state based on if this is a legacy
breach in the channel arbitrator or a modern breach with a resolver.
2022-01-25 15:42:20 -05:00
eugene
af03c8cb46 contractcourt: handle writing BreachResolution in arbitrator log 2022-01-25 15:42:20 -05:00
eugene
f99933fa69 server+contractcourt: add breachResolver that subscribes to breacharbiter
Introduces a breachResolver that subscribes to the breacharbiter to
determine if the final justice transaction has confirmed and can
clean itself up.
2022-01-25 15:42:20 -05:00
Olaoluwa Osuntokun
234fdc6c9c
Merge pull request #6185 from sangaman/rpc-middleware-custom-caveat
rpcperms: set CustomCaveatCondition on middleware req
2022-01-24 15:45:49 -08:00
Daniel McNally
4a573b18cf
rpcperms: set CustomCaveatCondition on middleware req
This sets the `CustomCaveatCondition` value on rpc middleware requests
if one exists. Previously, this value was always blank even if the
macaroon had a value set for its custom caveat condition.
2022-01-24 11:39:07 -05:00
Daniel McNally
a4474447c2
macaroons: add GetCustomCaveatCondition func
This adds a `GetCustomCaveatCondition` function that returns the custom
caveat condition for a given macaroon and caveat name. Previously there
was no function for getting the custom caveat condition from a macaroon,
only for setting one.
2022-01-24 11:39:00 -05:00
Oliver Gugger
f0e2a20d67
Merge pull request #6181 from schjonhaug/general-improvements-to-mobile-instructions
General improvements to mobile instructions
2022-01-24 16:52:52 +01:00
Oliver Gugger
1482e5e20a
Merge pull request #6156 from rex4539/typos
multi: Fix typos
2022-01-24 13:24:49 +01:00
Dimitris Apostolou
530a2059e5
multi: Fix typos [skip ci] 2022-01-24 12:19:02 +02:00
Oliver Gugger
bf4b47caa9
Merge pull request #6194 from zdebra/master
itest: fix documentation for LookupNodeByPub [skip ci]
2022-01-24 10:14:31 +01:00
zdebra
6baf7af79e itest: fix documentation for LookupNodeByPub [skip ci] 2022-01-23 18:00:24 +01:00
Andreas Schjønhaug
1f50320fe1 General improvements to mobile instructions
* Using <details> and <summary> tags in the INSTALL.md to collapse the various platforms for installing, making the rendered page shorter and easier to read.
* Simplyfying the instructions for creating LND mobile
* Fixed bug in checkout of latest tagged release
* Fixed bug in command for moving proto definitions to same folder as xcframework file
* Use Go 1.17.6 for building the Swift proto definitions
* Added link to LND Builder’s Guide
2022-01-22 09:23:48 +01:00
Oliver Gugger
f50950640f
Merge pull request #6188 from yyforyongyu/timeout-7z
github: add timeout when zipping log files
2022-01-21 12:28:21 +01:00
yyforyongyu
b2f3cabc23
github: add timeout when zipping log files 2022-01-21 12:36:54 +08:00
Olaoluwa Osuntokun
d67e6d5414
Merge pull request #6111 from bottlepay/cache-loading
kvdb+channeldb: speed up graph cache
2022-01-20 17:35:04 -08:00
Olaoluwa Osuntokun
408e40fd64
Merge pull request #6180 from bhandras/force-import-mc
routing: add option to force Mission Control pair history import
2022-01-20 17:04:00 -08:00
Olaoluwa Osuntokun
2e42476f29
Merge pull request #6151 from C-Otto/force-close-logging
contractcourt: use "info" log level for messages leading to force-clo…
2022-01-20 16:59:26 -08:00
Oliver Gugger
717c7c59a0
Merge pull request #6183 from guggero/github-daily-docker-build
GitHub: fix daily docker build
2022-01-20 21:17:57 +01:00
Andras Banki-Horvath
2dff5ba216
docs: update release notes 0.14.2 2022-01-20 18:20:44 +01:00
Oliver Gugger
6680d27d6f
Merge pull request #6184 from carlaKC/healthcheck-nochainbackend
server: disable chain health check if we're running without backend
2022-01-20 15:18:24 +01:00
carla
7241653561
docs: add release notes 2022-01-20 14:31:47 +02:00
carla
0ae38457de
server: disable chain health check if we're running without backend
There is no chain backend to check, so this check will always fail.
This commit disables it when we're running without a backend.
2022-01-20 14:21:36 +02:00
Oliver Gugger
5ead5ec4b6
GitHub: fix daily docker build 2022-01-20 10:27:42 +01:00
Oliver Gugger
ddaba02558
Merge pull request #6178 from BTCparadigm/GitIgnore
Ignore .vs/ folder
2022-01-20 09:34:20 +01:00
Andras Banki-Horvath
ec046aec1b
lncli: add force flag to 2022-01-19 17:18:06 +01:00
Andras Banki-Horvath
23c157a07b
routing: add option to force import MC pair history
This commit adds the `force` flag to the `XImportMissionControl` RPC
which allows skipping rules around the pair import except for what is
mandatory to make values meaningful. This can be useful for when clients
would like to forcibly override MC state in order to manipulate routing
results.
2022-01-19 17:18:05 +01:00
Rafe
a88a3c1b6d
Update release-notes-0.15.0.md
Add .gitignore update.
Add myself as contributor.
2022-01-19 13:01:56 +02:00
Olaoluwa Osuntokun
3829385073
Merge pull request #6159 from Roasbeef/fix-historical-migration
contractcourt: catch error when no historical bucket exists
2022-01-18 15:52:23 -08:00
Rafe
0090230792 Ignore .vs/ folder 2022-01-19 00:34:52 +02:00
Olaoluwa Osuntokun
957a0a5138
docs/release-notes: add entry for historical chan bucket check 2022-01-18 09:11:21 -08:00
Olaoluwa Osuntokun
91f32ad270
contractcourt: catch error when no historical bucket exists
For older nodes, this bucket was never created, so we'll get an error if
we try and query it. In this commit, we catch this error like we do when
a given channel doesn't have the information (but the bucket actually
exists).

Fixes #6155
2022-01-18 09:11:13 -08:00
Oliver Gugger
431ef6c4c3
Merge pull request #6160 from guggero/docker-nightly-build
github: add schedule for nightly docker build
2022-01-18 13:11:14 +01:00
Oliver Gugger
264b3b00cd
github: add schedule for daily build 2022-01-18 12:46:27 +01:00
Oliver Gugger
3ff849d15b
Merge pull request #6167 from madskrogh/pendingchannels-private-status
lnrpc: add Private field to PendingChannelsResponse
2022-01-18 10:48:00 +01:00
mads krogh
429ee6e28e docs/release-notes: add entry for private status in pendingchannels response 2022-01-18 09:42:14 +01:00
mads krogh
1e3c05399c lnd+lnrpc: add private status to pendingchannels response 2022-01-18 09:42:14 +01:00
mads krogh
42cebcfe2b lnd: remove unused graph param from createRPCOpenChannel 2022-01-18 09:42:05 +01:00
Oliver Gugger
f84825e441
Merge pull request #6152 from madskrogh/closechannel-with-point
lncli: closechannel chan_point flag
2022-01-17 10:29:46 +01:00