Commit Graph

13080 Commits

Author SHA1 Message Date
carla
4ac6f82b5e
itest: fix lack of hop hint coverage in hold invoice test
Update our test to assert that we have hop hints present when we
expect them, and fix the "alice is a private node" issue that was
previously preventing us from adding hop hints. Asserting that we
have hop hints present in this itest ensures that we'll fail our
itests if a change to SelectHopHints results in our no longer
having hints in this secnario.
2022-02-07 09:03:09 +02:00
Daniel McNally
2b1bb3bce0
lncli: update lncli state description
This updates the description that is provided for `lncli state` to match
the states that are currently returned by lnd. `RPC_READY` no longer
exists and is replaced by `RPC_ACTIVE` with a revised description, and
`SERVER_ACTIVE` is added as the status that indicates lnd is fully
ready to accept RPC calls.

See `enum WalletState` in `stateservice.proto`.
2022-02-04 08:42:06 -05:00
Olaoluwa Osuntokun
f6ba5be351
Merge pull request #6234 from Roasbeef/increase-legacy-api-fee-limit
lnwallet: increase legacy fee limit threshold to 1k sats
2022-02-03 12:17:20 -08:00
Olaoluwa Osuntokun
80e304573c
lnwallet: increase legacy fee limit threshold to 1k sats
In this commit, we increase the legacy fee limit threshold (the amount
below which we'll allow 100% of funds to go to fees for the non-v2 RPC
calls) from 50 sats to 1k sats.
2022-02-03 11:54:01 -08:00
Oliver Gugger
75016a176c
rpcwallet: disallow empty UTXO pk script [skip ci]
If we're signing for an UTXO that isn't known to the wallet, then the
UTXO's pk script _must_ be set in the sign descriptor. Otherwise we run
into a generic PSBT serialization error when running in a remote signing
setup.
2022-02-03 17:34:14 +01:00
Oliver Gugger
04bbbea9a7
Merge pull request #6228 from guggero/contribution-guidelines
docs: rewrite and regroup formatting rules [skip ci]
2022-02-03 10:02:02 +01:00
Olaoluwa Osuntokun
5891643269
Merge pull request #6226 from guggero/fee-limit-fix
Fix default value for fee limit
2022-02-02 12:53:11 -08:00
Oliver Gugger
84c8c18a9e
docs: update release notes 2022-02-02 17:29:55 +01:00
Oliver Gugger
d252653624
lncli: use amount based default routing fee 2022-02-02 17:29:52 +01:00
Oliver Gugger
30367d50c7
Merge pull request #6229 from Neil-LL/patch-1
Tiny Formatting Change
2022-02-02 15:48:04 +01:00
Neil-LL
b398d64393
Tiny Formatting Change 2022-02-02 16:14:42 +02:00
Oliver Gugger
b667f7a89c
docs: rewrite and regroup formatting rules [skip ci] 2022-02-02 15:11:43 +01:00
Oliver Gugger
3c324ad058
docs: remove protobuf compilation section from guidelines
Since we're now enforcing the formatting of the protobuf files through a
CI step, this explicit mention in the docs is no longer needed.
2022-02-02 15:10:24 +01:00
Oliver Gugger
d22f543906
lnrpc: use amount based default routing fee 2022-02-02 14:24:53 +01:00
Oliver Gugger
bfa1cf17b9
lnwallet: introduce default routing fee calculation 2022-02-02 14:24:52 +01:00
Olaoluwa Osuntokun
5a827dd19b
Merge pull request #6177 from bottlepay/interceptor-failures
htlcswitch: add htlc interceptor failure control
2022-02-01 17:00:07 -08:00
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
Oliver Gugger
4a6e4d283e
Merge pull request #6222 from positiveblue/code-guidelines
docs: add guidelines for func declarations [skip ci]
2022-02-01 17:43:16 +01:00
positiveblue
d2143bd40f
docs: add guidelines for func declarations [skip ci] 2022-02-01 08:31:19 -08:00
Joost Jager
e2b56f212f
htlcswitch: accept failure reason for intercepted htlcs 2022-02-01 17:18:59 +01:00
Oliver Gugger
60625b6c1a
Merge pull request #6213 from blakejakopovic/master
docs: fixed typos in mobile readme
2022-01-31 15:16:59 +01:00
Oliver Gugger
91f93f161d
Merge pull request #6218 from guggero/dev-rpc-fix
devrpc: remove lncli API docs tag [skip ci]
2022-01-31 13:35:05 +01:00
Oliver Gugger
a5849bb189
devrpc: remove lncli API docs tag [skip ci]
The API doc generator failed after merging #6149 because of the `lncli
importgraph` tag in the proto file.
We could also fix the API doc generator by adding the "dev" build tag,
but not including any dev only features in the API docs is probably the
preferred path.
2022-01-31 13:05:27 +01:00
Oliver Gugger
8d40c8904e
Merge pull request #6207 from lightningnetwork/ci-rpc-check
makefile: fail rpc-check after finding any changes
2022-01-31 11:15:35 +01:00
liviu-ln
78ee332f96
docs: update release notes 2022-01-30 22:33:39 -08:00
Liviu
e11c41ba8f walletrpc: return an error when finalizing an already complete PSBT
Return an error to the client if attempting to finalize a PSBS with no missing signatures.
2022-01-30 21:37:32 -08:00
positiveblue
3c3bce3415
makefile: fail rpc-check after finding any changes
`rpc-check` is used in our CI pipeline to detect any difference
between the committed and the automatically generated rpc files.
Unfortunately, the current method only detects changes in the
already existing files and won't fail if `make rpc` generates
a totally new file.

`git status --porcelain` makes the trick, it returns a line for
each file that has been modified, created or deleted.
2022-01-29 11:23:24 -08:00
Blake Jakopovic
e534ae373f
docs: fixed typos in mobile readme [skip ci]
Added missing single quote
Removed extra backticks
2022-01-29 09:23:08 +11:00
Oliver Gugger
9e0f7e73db
Merge pull request #6211 from carlaKC/github-prtemplate
github: simplify PR template and add more sections
2022-01-28 10:46:22 +01:00
Oliver Gugger
b77c1fb200
Merge pull request #6149 from bhandras/graph_import_rpc
lnd: add `devrpc` sub server and `devrpc.ImportGraph` to import graph dumps
2022-01-28 10:24:59 +01:00
Oliver Gugger
065412b948
Merge pull request #6182 from carlaKC/454-loop-hophintsrefactor
invoicerpc: refactor SelectHopHints to allow external use
2022-01-28 09:44:29 +01:00
carla
0f8d314ee7
github: simplify PR template and add more sections [skip ci] 2022-01-28 09:50:02 +02:00
carla
c15d010ba2
docs: add release notes 2022-01-27 15:10:04 +02:00
carla
714a1fb05c
invoicerpc: move hop hint to constant and add tests to select hop hint 2022-01-27 15:09:21 +02:00
carla
80bf4bf014
invoicerpc: return hop hints from select hop hint rather than functions
Update SelectHopHints to return a set of hop hints that can be
converted to route hints / functional options by the caller. This
change allows external code to call SelectHopHints to get a set of
route hints and use them as it likes, rather than limiting the
return value to functional options for invoice creation.
2022-01-27 15:09:20 +02:00
carla
00a47740c8
invoicesrpc: pass in specialized config for select hop hints 2022-01-27 15:09:19 +02:00
carla
56e83de9ef
invoicesrpc: add HopHintInfo decoupling hop hint from channel internals 2022-01-27 15:09:18 +02:00
Oliver Gugger
8d3d8580f9
Merge pull request #6197 from carlaKC/itest-policy-ensureconnected
lntest/test: ensure nodes connected before disconnecting
2022-01-27 13:20:13 +01: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