Commit graph

14114 commits

Author SHA1 Message Date
Oliver Gugger
817af408e2
Merge pull request #7066 from yyforyongyu/switch-config-mailbox
htlcswitch: make mailbox HTLC delivery timeout configurable
2022-11-15 11:50:03 +01:00
Oliver Gugger
bace8d81fa
Merge pull request #7143 from morehouse/test_warning
lnwire: add missing tests for Warning
2022-11-14 17:46:46 +01:00
Oliver Gugger
c9b4e7405b
Merge pull request #7142 from morehouse/make_fuzz
make+scripts+docs: update fuzzing script and make fuzz
2022-11-14 17:14:43 +01:00
Oliver Gugger
fdb94afecb
Merge pull request #7082 from alpeb-btc/addinvoice-private-hints
addinvoice: provide hop hints for no-amount invoice
2022-11-14 09:49:26 +01:00
alpeb-btc
32cda21e07
docs: update release notes 2022-11-12 05:02:47 -05:00
alpeb-btc
eefe1c816e
lnrpc+cmd: clarify docs about addinvoice no-amount hop hints
Add additional comment to `lnclic addinvoice`'s `--private` flag warning
about including a large number of private channel hints when using zero
ammounts.

Also added a comment to the `private` field in the `Invoice` proto
message.
2022-11-12 05:01:10 -05:00
alpeb-btc
0cae501009
lnrpc: provide hop hints when adding an invoice with no amount
With this change we allow adding hop hints when adding an invoice, even
if its amount is zero.

A couple of new unit test case have been added, and the
`testInvoiceRoutingHints` itest was expanded to account for this
scenario.
2022-11-12 05:01:10 -05:00
alpeb-btc
e68ae33c9a
lnrpc: refactor populateHopHintsTestCases in addinvoice_test.go
Extract into a separate function the steps to set up the two-channel
mock, to be reused in other cases.
2022-11-12 05:01:09 -05:00
alpeb-btc
143111e368
lnrpc: fix typos in addinvoice_test.go 2022-11-12 05:01:09 -05:00
alpeb-btc
a96483c7d2
itest: refactor testInvoiceRoutingHints' hints check logic
Move code into new closure `checkInvoiceHints` to reuse when checking
other invoices.
2022-11-12 05:01:09 -05:00
Olaoluwa Osuntokun
f6ae63fd7b
Merge pull request #7130 from guggero/remote-signing-fixes
rpcwallet: fix remote signing issues
2022-11-11 16:26:20 -08:00
st4rgut24
8d6d1564c0 cli: revise help text for addinvoice lncli command [skip ci] 2022-11-11 14:31:04 -08:00
Matt Morehouse
251725fc11
docs: update release notes 2022-11-11 12:10:19 -06:00
Matt Morehouse
f0f99d7e36
lnwire: add fuzz test for Warning 2022-11-11 11:56:49 -06:00
Matt Morehouse
258cf6466d
lnwire: add benchmark for Warning 2022-11-11 11:56:49 -06:00
Matt Morehouse
2fcb2cc8ee
docs: update release notes 2022-11-11 11:05:43 -06:00
Matt Morehouse
beb4d8c4df
build: remove go-fuzz dependency and references
We don't need go-fuzz now that we use native fuzzing.
2022-11-11 10:44:37 -06:00
Conner
25a7bb8b86
make+scripts+docs: update fuzzing script and make fuzz 2022-11-11 10:30:05 -06:00
Oliver Gugger
404e18afab
Merge pull request #7127 from morehouse/native_fuzzing
brontide+lnwire+wtwire+zpay32: migrate fuzz tests
2022-11-11 16:26:03 +01:00
Matt Morehouse
48c71d7f2b
docs: update release notes 2022-11-11 08:44:35 -06:00
Matt Morehouse
e15d3e898e
brontide,lnwire,wtwire,zpay32: appease linter
Address all linter complaints for the newly migrated fuzz tests.
2022-11-11 08:44:30 -06:00
Matt Morehouse
5a48568806
brontide,lnwire,wtwire,zpay32: use CamelCase
Rename fuzz test functions to use CamelCase.
2022-11-11 08:44:24 -06:00
Conner
c77852a68c
brontide: migrate fuzz tests 2022-11-11 08:44:16 -06:00
Conner
782f973298
zpay32: migrate fuzz tests 2022-11-11 08:44:12 -06:00
Conner
1ed2a1bc28
wtwire: migrate fuzz tests 2022-11-11 08:44:01 -06:00
Conner
3d4d8cd6cc
lnwire: migrate fuzz tests 2022-11-11 08:43:32 -06:00
Oliver Gugger
7e04d407b7
Merge pull request #6766 from andreihod/fix-infinite-loop-error
routing: Fix possible infinite loop on first hop unknown next peer
2022-11-11 12:13:27 +01:00
Oliver Gugger
8b522aa49a
docs: add release notes for v0.15.5-beta 2022-11-11 10:20:10 +01:00
Oliver Gugger
5bd3e91750
rpcwallet: pass prev output fetcher into ComputeInputScript
This commit fixes signing of Taproot inputs when some of the other
inputs of the transaction are not known to the wallet (such as a Pool
account for example).
If we want to sign for a Taproot (change) input when depositing into a
Pool account the wallet won't know the Pool account input. So we need to
make sure we pass it along inside the PrevOutputFetcher (which contains
the UTXO information extracted from the PSBT).
2022-11-11 10:20:09 +01:00
Oliver Gugger
ed2e542515
rpcwallet: don't re-use sign desc in loop
This commit fixes an issue with signing for mixed inputs in a remote
signing setup where the re-use of the sign descriptor would lead to the
sign method not being reset correctly if a p2wkh input is following a
p2tr input.
2022-11-11 10:20:09 +01:00
Oliver Gugger
b3f6fe315e
itest: add test coverage for Taproot tweak key mutation 2022-11-11 10:20:09 +01:00
Oliver Gugger
082d68d0ca
mod: bump btcwallet to version with addr validation
This commit bumps the btcwallet dependency to the version that includes
the address validation that asserts we can sign for an address before we
use it.
2022-11-11 10:20:08 +01:00
Oliver Gugger
e3536dd770
mod+keychain+lntest: bump btcd to version with tweak fix
This commit bumps to the latest version of btcd that fixes a key
mutation issue when signing for Taproot outputs.
2022-11-11 10:20:08 +01:00
andreihod
3ed0e8ee96
lint: remove unnecessary leading newline 2022-11-11 04:23:55 -03:00
andreihod
861f8174b1
docs: update release notes 2022-11-11 04:23:55 -03:00
andreihod
befa1b7cf0
routing: Fix possible infinite loop on first hop misleading hint
Add ignore condition to additional edges that connect to self. These
edges are already known and avoiding these hints protect the payment
from malformed channel ids which could lead to infinite loop.

Fixes lightningnetwork#6169.

Co-authored-by: lsunsi <lsunsi@pm.me>
2022-11-11 04:23:55 -03:00
Olaoluwa Osuntokun
bcdf24b15e
Merge pull request #7126 from yyforyongyu/temp-fix-itest
itest+funding: decrease sleep time and add a temporary fix for itest
2022-11-10 16:53:44 -08:00
yyforyongyu
22ae772b3f
docs: replace release docs re checking FundingLocked interval 2022-11-10 13:59:17 +08:00
yyforyongyu
b7816489a1
itest: add temp fix to bring back btcd build 2022-11-10 13:59:17 +08:00
yyforyongyu
4b558c3af5
funding: decrease checking interval to be 10ms in itest
When waiting for the peer to send us FundingLocked, we check whether
we've received this message periodically. This commit changes the
checking interval from 1s to 10ms in itest, which allows us to still
stop the CPU spike while responding to the message quickly.
2022-11-10 13:59:14 +08:00
Oliver Gugger
22fec76339
Merge pull request #7114 from ellemouton/useCorrectBaseBranchOnPush
github: only check commits on PR events
2022-11-04 10:27:23 +01:00
Elle Mouton
5499ce36fa
github+docs: only check commits on PR action 2022-11-04 11:07:19 +02:00
yyforyongyu
3df4a0efbc
docs: update release note 2022-11-03 18:29:35 +08:00
yyforyongyu
e6bebc4fe7
lnd: make MailboxDeliveryTimeout configurable 2022-11-03 18:29:08 +08:00
yyforyongyu
502a8f3210
lnd: fix sweeper batch window logging 2022-11-03 18:29:08 +08:00
yyforyongyu
851c82b80e
multi: rename HTLCExpiry to MailboxDeliveryTimeout for clarity 2022-11-03 18:29:08 +08:00
Oliver Gugger
ae6006a84e
Merge pull request #7095 from yyforyongyu/funding-locked
funding: wait for one sec if funding locked is not received
2022-11-02 09:27:41 +01:00
Oliver Gugger
421c9c660c
Merge pull request #7103 from ellemouton/checkAgainstBaseBranch
github: check commits against base branch
2022-11-02 09:22:13 +01:00
Oliver Gugger
926fdf486c
Merge pull request #6573 from voltagecloud/tls-reloader
cert: add TLS reloader
2022-11-02 09:10:15 +01:00
Elle Mouton
5ea99578a8
github: check commits against base branch 2022-11-02 09:08:21 +02:00