Commit graph

16674 commits

Author SHA1 Message Date
yyforyongyu
84e58d6f02
workflows: decrease TRANCHES to 8 2024-06-13 17:54:34 +08:00
yyforyongyu
6de1b026dd
chainntnfs: add verbose logging in unit test 2024-06-13 17:54:34 +08:00
yyforyongyu
9f34a4dc54
itest: skip error assertion when parent context finishes
We may get a flake like the following,
```
lnd_route_blinding_test.go:468:
            Error Trace:    /Users/runner/work/lnd/lnd/itest/lnd_route_blinding_test.go:468
                                        /Users/runner/hostedtoolcache/go/1.22.3/arm64/src/runtime/asm_arm64.s:1222
            Error:          Received unexpected error:
                            rpc error: code = Canceled desc = context canceled
            Test:           TestLightningNetworkDaemon/tranche15/144-of-156/bitcoind/disable_introduction_node
```

This happens when the test successfully finishes, the parent context is
canceled, causing the child context to return an error. We fix it by
ignoring it in the goroutine.
2024-06-13 17:54:30 +08:00
yyforyongyu
ddceb2b15b
lntest: increase timeout for postgres backend
Also decrease timeout values for other builds.
2024-06-13 17:54:30 +08:00
Elle
26892a2645
Merge pull request #8730 from feelancer21/lncli-wallet-estimatefee
lncli: new command `wallet estimatefeerate`
2024-06-12 10:43:50 -04:00
feelancer21
fc90bc9b0f
lncli: new command wallet estimatefeerate
`lncli wallet estimatefeerate` returns the fee rate estimate for on-chain
transactions in sat/kw and sat/vb to achieve a given confirmation target.
2024-06-11 21:56:06 +02:00
Yong
286ee95735
Merge pull request #8800 from ProofOfKeags/bugfix/8535
contractcourt: consider delivery addresses when evaluating toSelfAmount
2024-06-12 01:06:36 +08:00
Oliver Gugger
931b3dc0c3
Merge pull request #8815 from yyforyongyu/fix-edge-policy
trivial: fix linter errors and return verbose errors
2024-06-10 12:48:59 -06:00
Keagan McClelland
1fea14f69f docs: update release notes 2024-06-10 11:38:22 -07:00
Keagan McClelland
30e10322b2 contractcourt: consider delivery addresses when evaluating toSelfAmount
This commit fixes #8535 by changing how we assess toSelfAmount inside
the chainWatcher.

In certain cases users may wish to close out channel funds to external
delivery addresses set either during open or close.

Prior to this change we only consider addresses that our wallet is
aware of.

This change now identifies outputs as to_self outputs if the delivery
script matches OR if our wallet is aware of the address. In certain
edge cases it can be possible for there to be more than one output
that matches these criteria and in that case we will return the sum
of those values.
2024-06-10 11:38:17 -07:00
Oliver Gugger
3549d719ee
Merge pull request #8823 from bhandras/fixup-sendpayment-amp
lncli: fix parsing of --amp when sending a payment
2024-06-10 10:23:45 -06:00
Andras Banki-Horvath
59c8bafda7
lncli: fix parsing of --amp when sending a payment 2024-06-10 17:33:28 +02:00
yyforyongyu
e61cba8d22
multi: return verbose errors when fetching edges 2024-06-10 08:40:18 +08:00
yyforyongyu
78cc1619d7
multi: fix complaints from IDE and linter
Fixed unused param and nilness cond.
2024-06-07 00:45:15 +08:00
Oliver Gugger
98c52df4d2
Merge pull request #8813 from hieblmi/chaninfo-per-outpoint
Allow for a channel point in `GetChanInfo`
2024-06-06 14:47:31 +02:00
Slyghtning
cc902e3d8a
docs: update release notes 2024-06-06 14:15:46 +02:00
Slyghtning
9f83f48d78
lncli: channel point for getchaninfo 2024-06-06 14:15:44 +02:00
Slyghtning
7923ca0de4
rpcserver: retrieve channel info for channel point 2024-06-06 13:37:58 +02:00
Slyghtning
1936aa7261
lnrpc: channel point for GetChanInfo 2024-06-06 13:28:41 +02:00
Keagan McClelland
56048133f2 itest+lntest: add itest to reproduce bug #8535 2024-06-05 12:56:04 -07:00
Oliver Gugger
0fadf97e72
Merge pull request #8808 from ProofOfKeags/fn/predicate-combinators
fn: add predicate combinators for && and ||
2024-06-05 14:03:19 +02:00
Oliver Gugger
a832371d61
Merge pull request #8491 from davidgumberg/invoice_cltv_expiry
Expose `cltv_expiry` flag of `addinvoice` to cli
2024-06-04 13:59:50 +02:00
Oliver Gugger
14bed1d1e7
Merge pull request #8795 from guggero/itest-parallel
GitHub: increase itest parallelization to more tranches
2024-06-04 13:16:20 +02:00
David Gumberg
3c1b7ad59c Release note for cltv_expiry flag to addinvoice 2024-06-04 06:19:12 -04:00
David Gumberg
4646afb366 lnrpc: Fix bug in 'cltv below minimum' error msg
Previously the error message produced when `CltvExpiry` is less
than the minimum final cltv (18 at present) set by
`routing.MinCLTVDelta` inserted the values into the wrong spots of the
formatted string.
2024-06-04 06:19:12 -04:00
David Gumberg
80b60d34aa lncli: Expose cltv_expiry flag of addinvoice
Allows users of the RPC CLI to set the `min_final_cltv_expiry_delta`
described in BOLT's 11, 7, and 2 by setting the `cltv_expiry` flag when
calling either of the `addinvoice` or `addholdinvoice` RPC's from
`lncli`.
2024-06-04 06:19:12 -04:00
yyforyongyu
d9498a9d13
lntest: increase DefaultTimeout for postgres 2024-06-04 09:07:44 +02:00
yyforyongyu
c9cad6ab81
itest+sweep: refactor testSignPsbt to use Subtest and add logs 2024-06-04 09:07:44 +02:00
yyforyongyu
55452f64e8
lntest: wait for mempool update after mining txns 2024-06-04 09:07:43 +02:00
Oliver Gugger
a5c04bbd14
GitHub: increase itest parallelization to 16 tranches 2024-06-04 09:07:34 +02:00
Keagan McClelland
cd3c17e1c0 fn: add predicate combinators for && and || 2024-06-03 12:24:02 -07:00
Oliver Gugger
a2266c6c73
Merge pull request #8802 from saubyk/suheb-pgp
scripts: add pgp key for suheb [skip ci]
2024-06-03 17:53:53 +02:00
Oliver Gugger
d7714efc88
Merge pull request #8779 from bufo24/chore/allow-zero-fail-amt-import-mc
Allow 0 failure amt on importmc
2024-06-03 13:02:37 +02:00
Bufo
4a3af519b8
chore: allow 0 failure amount on import mission control 2024-06-03 11:28:26 +02:00
saubyk
ab00c8ad18
scripts: add gpg key for suheb [skip ci] 2024-06-01 11:25:46 -07:00
Oliver Gugger
613bfc07fb
Merge pull request #8798 from zoupingshi/master
chore: fix some comments
2024-05-31 18:03:54 +02:00
Oliver Gugger
a02c6b6194
Merge pull request #8799 from ellemouton/release-notes-0.18.1
docs: add release notes template for 0.18.1
2024-05-31 17:19:05 +02:00
Elle Mouton
401e74c568
docs: add release notes template for 0.18.1 2024-05-31 09:44:48 -04:00
zoupingshi
30047feb35 chore: fix some comments
Signed-off-by: zoupingshi <hellocatty@tom.com>
2024-05-31 15:16:33 +08:00
Olaoluwa Osuntokun
fed760913f
Merge pull request #8794 from Roasbeef/v0-18-0-branch
build: bump version to v0.18.0 beta
2024-05-30 22:52:10 +09:00
Olaoluwa Osuntokun
1a8d196607
build: bump version to v0.18.0 beta 2024-05-30 17:49:17 +09:00
Oliver Gugger
b137892ceb
Merge pull request #8788 from ProofOfKeags/proofofkeags-pgp
scripts: add gpg key for proofofkeags [skip ci]
2024-05-29 20:55:17 +02:00
Olaoluwa Osuntokun
cd23265537
Merge pull request #8784 from lightningnetwork/0-18-rc4
build: bump version to v0.18.0-beta.rc4
2024-05-29 17:00:12 +09:00
Oliver Gugger
a8b679cd60
Merge pull request #8789 from guggero/fn-result
fn: add Result type
2024-05-29 09:55:52 +02:00
Oliver Gugger
c95505db1e
fn: add Result type
In this commit, we add a new result type, which is just Either[A, error]. This is useful as we can always pass around/accept a single value. We add an Unpack() method which is the most idiomatic way of handling errors in Go, as we revert back to (A, error) when necessary.
2024-05-29 09:39:39 +02:00
Keagan McClelland
fce2ef15a5 scripts: add gpg key for proofofkeags [skip ci] 2024-05-28 17:29:36 -07:00
Olaoluwa Osuntokun
1b6f42a107
build: bump version to v0.18.0-beta.rc4 2024-05-28 10:46:15 +09:00
Olaoluwa Osuntokun
ff85328050
Merge pull request #8774 from yyforyongyu/fix-size-calc
lnwallet+sweep: fix wrong unit used in fee calculation
2024-05-27 18:44:29 -07:00
yyforyongyu
2e40a23146
lnrpc: fix linter 2024-05-25 13:37:16 +08:00
yyforyongyu
5e8452cc5d
sweep: make sure the full input is accounted
Fix the case where previously only the witness data is taken into
account when calculating the fees.
2024-05-25 13:37:16 +08:00