Commit Graph

14128 Commits

Author SHA1 Message Date
yyforyongyu
5336c8e5f5
multi: refactor testSphinxReplayPersistence 2022-11-17 20:29:50 +08:00
yyforyongyu
f5ebaa5f35
multi: refactor testDisconnectingTargetPeer 2022-11-17 20:29:50 +08:00
yyforyongyu
d39303f246
itest: wrap assertTxLabel inside wait 2022-11-17 20:29:50 +08:00
yyforyongyu
bbe69f1bd3
multi: refactor testSweepAllCoins 2022-11-17 20:29:50 +08:00
Oliver Gugger
00006adeda
Merge pull request #7122 from antonilol/read-binary-psbt
lncli: Allow lncli to read binary PSBTs from a file
2022-11-17 13:13:58 +01:00
Antoni Spaanderman
ed112681f5
lncli: Allow lncli to read binary PSBTs from a file
BIP 174 states that PSBTs can be encoded in 2 formats:
- plain text as base64
- in a file as binary

With this change, lncli will also try to read a PSBT as binary
2022-11-17 12:41:46 +01:00
Oliver Gugger
d5648e9f80
Merge pull request #7164 from Roasbeef/submodule-btcd
multi: update to latest version of btcd in submodules
2022-11-17 12:06:56 +01:00
Oliver Gugger
ad2870135c
Merge pull request #7163 from akovalenko/master
cmd/lncli/walletrpc_active.go: avoid nested getContext
2022-11-17 10:59:45 +01:00
Anton Kovalenko
2700c97d2b cmd/lncli/walletrpc_active.go: avoid nested getContext [skip ci]
Pass down a context from bumpCloseFee to getWaitingCloseCommitments,
to avoid another call to getContext that used to fail with "intercept
already active"
2022-11-17 12:37:15 +03:00
Olaoluwa Osuntokun
d61e668f56
multi: update to latest version of btcd in submodules
The main package has already been updated, but here we update the
submodules as well that only import things to use a constant or so here
and there.
2022-11-16 17:50:34 -08:00
Oliver Gugger
478b012672
Merge pull request #7150 from tgntr/lncli-strip-prefix-from_invoices
lncli: strip accidentally copied 'lightning:' prefix from pay_req
2022-11-16 12:17:46 +01:00
Tugay Emin
3f2079fa39
lncli: strip prefix from pay_req flag 2022-11-15 18:13:29 +02:00
Oliver Gugger
f277f89e08
Merge pull request #7158 from yyforyongyu/move-tx-label
funding: mark tx label before notifying channel open event
2022-11-15 14:06:54 +01:00
yyforyongyu
5805363867
funding: mark tx label before notifying channel open event 2022-11-15 18:58:26 +08:00
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