Commit graph

16202 commits

Author SHA1 Message Date
yyforyongyu
c00b7101d2
lnwallet: update the unit tests to check the new errors 2024-03-20 04:40:38 +08:00
yyforyongyu
837c7f761c
lnwallet+lnd: make use of the new errors from btcd/rpcclient
This commit updates `btcd` and `btcwallet` packages and make use of the
new RPC error mappings.
2024-03-20 04:40:38 +08:00
Oliver Gugger
b1d3b9f678
Merge pull request #8567 from ellemouton/bumpSqliteToFixRace
go.mod+docs: bump sqlite version to fix data race
2024-03-19 09:29:47 -06:00
Elle Mouton
91ed8cf862
go.mod+docs: bump sqlite version to fix data race 2024-03-19 15:40:10 +02:00
Oliver Gugger
b0552da007
Merge pull request #8558 from mohamedawnallah/fix-manpages-script-breaks-dockerfiles-bug
Fix: Manpages Script breaks Dockerfiles
2024-03-18 08:12:44 -06:00
Mohamed Awnallah
1812b0e56e
scripts+dev.Dockerfile: address dockerfile build issue 2024-03-18 13:47:39 +02:00
Oliver Gugger
0bc3d29413
Merge pull request #8496 from aakselrod/locks-to-leases
multi: replace `LockOutpoint` with `LeaseOutput`
2024-03-18 03:34:56 -06:00
Oliver Gugger
51ebc2052f
Merge pull request #8310 from mohamedawnallah/lnconfig-support-env-vars-for-rpcuser-rpcpassword
lnconfig: Support utilizing Environment Variables in `lnd.conf` for `rpcuser` and `rpcpass` fields.
2024-03-15 12:39:54 -06:00
Alex Akselrod
4193505341
lntest/wait: increase DefaultTimeout for db access
This helps take into account the new limits on GHA runners.
2024-03-15 11:09:52 -07:00
Oliver Gugger
ff31426248
Merge pull request #8300 from mohamedawnallah/fix/clarify-available-commitment-balance-message
fix: clarify available commitment balance log message
2024-03-15 05:56:40 -06:00
Mohamed Awnallah
e16efd6f08
lnwallet: clarify-available-commitment-balance-message [skip ci] 2024-03-15 11:18:57 +02:00
Mohamed Awnallah
0add4fcec7
docs: update the release-notes-0.18.0.md 2024-03-14 17:55:59 +02:00
Mohamed Awnallah
3e5f03eb0b
config_test.go: add test cases for supplyEnvValue 2024-03-14 17:55:59 +02:00
Mohamed Awnallah
ae1c470cb4
config.go: support utilizing env variables in lnd.conf file
In this commit, we support utilizing the usage of enviroment variables in `lnd.conf` file
for `rpcuser` and `rpcpass` fields by adding `supplyEnvValue` function in `config.go`
that returns the value of the specified environment variable, the fall-back value
if provided, or the original input string if no matching environment variables are found or set.
2024-03-14 17:53:43 +02:00
Oliver Gugger
18371e120d
Merge pull request #8552 from guggero/optimize-build
GitHub: separate build caches
2024-03-14 09:15:29 -06:00
Oliver Gugger
23d5ed826f
Merge pull request #8551 from guggero/dependency-update
mod: update outdated module dependencies
2024-03-14 04:19:23 -06:00
Oliver Gugger
05675fa254
GitHub: separate build caches
To avoid build caches getting larger and larger, causing our builds to
fail, we separate the caches of the different job types.
If we don't separate them, then the caches can end up being a
combination of the different jobs, which isn't useful (for example the
build cache of the cross compilation build isn't useful in an
integration test and vice versa).
2024-03-14 11:14:39 +01:00
Oliver Gugger
73058c7c6a
Merge pull request #8525 from mohamedawnallah/generate-man-pages
Feature: generate man pages
2024-03-14 03:00:06 -06:00
Oliver Gugger
4140d2a9d7
lnrpc: re-generate protos after dependency update 2024-03-14 09:32:29 +01:00
Oliver Gugger
2c19c91741
mod: update outdated module dependencies
To avoid getting spammed by Dependabot, we preemptively bump the
versions of dependencies with known CVEs (even if they might not
directly affect us).
2024-03-14 09:15:16 +01:00
Mohamed Awnallah
fb5b425c40
docs: update release-notes-0.18.0 2024-03-13 21:18:24 +02:00
Mohamed Awnallah
158b802f49
lncli+makefile: generate man pages automatically for lncli and lnd 2024-03-13 21:18:23 +02:00
Mohamed Awnallah
dfd1636f18
scripts: add gen_man_pages.sh script 2024-03-13 21:18:23 +02:00
Alex Akselrod
7af3d4022f
docs: update release notes 2024-03-13 09:50:18 -07:00
Alex Akselrod
b9357fe830
multi: remove unused LockOutpoint and UnlockOutpoint 2024-03-13 09:50:18 -07:00
Alex Akselrod
cefbb77b1e
lnwallet: use ReleaseOutput instead of UnlockOutpoint 2024-03-13 09:50:17 -07:00
Alex Akselrod
a1d4463947
sweep: use {Lease|Release}Output instead of {Lock|Unlock}Outpoint 2024-03-13 09:50:17 -07:00
Alex Akselrod
6ad86a800c
chanfunding: use {Lease|Release}Output not {Lock|Unlock}Outpoint 2024-03-13 09:50:16 -07:00
Alex Akselrod
4d2ab7423f
multi: move 3 vars from walletrpc+lncfg to chanfunding
This commit moves the constants LndInternalLockID and
DefaultLockDuration from the walletrpc package to the chanfunding
package, moves DefaultReservationTimeout from lncfg to chanfunding,
and also updates the lncli package with the new location.
2024-03-13 09:50:16 -07:00
Alex Akselrod
07ba9d6015
itest: add open channel locked balance test 2024-03-13 09:50:15 -07:00
Yong
d9887f3212
Merge pull request #8504 from calvinrzachman/healthcheck
lnd/healthcheck: add checks after initialization + success/failure callbacks
2024-03-13 20:20:39 +08:00
Oliver Gugger
1fd6bc870b
Merge pull request #8544 from ellemouton/undoChainsListDeprecation
lnrpc: undo GetInfo Chains list deprecation
2024-03-12 15:55:13 -06:00
Elle Mouton
041a7859ff
lnrpc: undo GetInfo Chains list deprecation 2024-03-12 20:06:56 +02:00
Calvin Zachman
add2b2957b
docs: release notes for healthcheck package changes 2024-03-12 09:50:17 -05:00
Calvin Zachman
39f94a150f
lnd/healthcheck: add tests for callbacks and dynamic checks 2024-03-12 09:36:42 -05:00
Calvin Zachman
6a3a2ee61d
lnd/healthcheck: add healthcheck onSuccess/onFailure callbacks
Allow package users to provide custom callback which will
execute whenever a healthcheck fails.

Allow package users to provide custom callback which will
execute whenever a healthcheck succeeds.
2024-03-12 09:36:35 -05:00
Calvin Zachman
80c2ac8ed3
lnd/healthcheck: add health checks dynamically
Allow health checks to be added to our monitor after
the initial startup.
2024-03-12 09:12:24 -05:00
Oliver Gugger
5cb4811e86
Merge pull request #8425 from ProofOfKeags/refactor/lnwallet/chan-point-leaks
[EZ Review]: avoid leaking pointers to authoritative ChannelPoint
2024-03-11 00:55:41 -06:00
Oliver Gugger
780ffe913c
Merge pull request #8527 from cuinix/master
chore: remove repetitive words
2024-03-11 00:33:26 -06:00
Keagan McClelland
659ad459bb brontide: placate linter 2024-03-08 15:54:25 -08:00
Keagan McClelland
16be46c1e5 htlcswitch: prevent ChannelLink from leaking ChannelPoint pointer 2024-03-08 15:48:02 -08:00
Keagan McClelland
db39a905cb multi: make NewChanIDFromOutpoint accept value instead of pointer 2024-03-08 15:47:55 -08:00
Keagan McClelland
fd1cd315ce multi: don't leak underlying pointer to LightningChannel.ChannelPoint() 2024-03-08 15:27:19 -08:00
Oliver Gugger
4f06f58791
Merge pull request #8483 from ProofOfKeags/feature/for-loop-destroyer
fn: add slice utilities
2024-03-08 01:48:38 -06:00
Oliver Gugger
d9048d1f3d
Merge pull request #8533 from Roasbeef/code-owners
github/CODEOWNERS: rename code owners file to soft deactivate
2024-03-08 01:35:54 -06:00
Olaoluwa Osuntokun
482b0ad7b4
github/CODEOWNERS: rename code owners file to soft deactivate
In this commit, rather than attempt to reduce the scope of the current
`CODEOWNERS` file, we instead rename it as a way to stop Github from
automatically assigning reviewers based on it. Instead, we put things in
a "hint" mode as a way for PR OPs to figure out who they should manually
assign PRs today.

With the CODEOWNERS file reduced to a code review assignment hint, we
aim to instead promote usage of the `@code-review` team which will use a
load balancing algorithm for automatic code review assignment.
2024-03-07 17:15:22 -08:00
Keagan McClelland
e9b3808c29 lnwallet+contractcourt: remove redundant ChanPoint field 2024-03-07 14:16:16 -08:00
Oliver Gugger
5ccb9db78f
Merge pull request #8526 from guggero/confirm-closeallchannels
cli: add confirmation prompt to closeallchannels
2024-03-07 02:31:46 -06:00
Oliver Gugger
bb5b614af5
docs: add release notes 2024-03-07 09:12:13 +01:00
Oliver Gugger
92ae54d7ae
cmd/lncli: add confirmation promt to closeallchannels
To make sure users don't accidentally close all channels, we ask before
running this potentially very destructive command.
2024-03-07 09:12:12 +01:00