Commit Graph

13942 Commits

Author SHA1 Message Date
yyforyongyu
b579ed72d9
lntemp+itest: refactor testSendUpdateDisableChannel 2022-11-17 20:58:06 +08:00
yyforyongyu
22f8f83412
multi: refactor testUpdateChannelPolicy 2022-11-17 20:58:05 +08:00
yyforyongyu
1d7c568fcf
lntemp+itest: refactor testBatchChanFunding 2022-11-17 20:29:52 +08:00
yyforyongyu
21097feb85
multi: refactor testFundingPersistence
This commit refactors the test `testFundingPersistence`. In addition, it
also changes the old `OpenChannelAssertPending` method and adds a new
method `OpenChannelAssertStream` for clarity.
2022-11-17 20:29:52 +08:00
yyforyongyu
6a66f3984f
lntemp+itest: refactir testUnconfirmedChannelFunding 2022-11-17 20:29:52 +08:00
yyforyongyu
6a42270ba6
itest: refactor testChannelFundingInputTypes 2022-11-17 20:29:52 +08:00
yyforyongyu
5208c501a2
itest: refactor testOnchainFundRecovery 2022-11-17 20:29:52 +08:00
yyforyongyu
b4d288cc10
lntemp+itest: refactor testGetRecoveryInfo 2022-11-17 20:29:51 +08:00
yyforyongyu
b1b989afae
lntemp+itest: refactor testAbandonChannel 2022-11-17 20:29:51 +08:00
yyforyongyu
2c12c8a77c
multi: refactor testListAddresses 2022-11-17 20:29:51 +08:00
yyforyongyu
4104a72b3a
lntemp+itest: refactor testNodeSignVerify 2022-11-17 20:29:51 +08:00
yyforyongyu
1938e42f4e
itest: refactor testRejectHTLC 2022-11-17 20:29:51 +08:00
yyforyongyu
0c8bce0c1c
itest: refactor testGarbageCollectLinkNodes 2022-11-17 20:29:51 +08:00
yyforyongyu
ba61e9edff
itest+lntemp: refactor testMaxPendingChannels 2022-11-17 20:29:51 +08:00
yyforyongyu
d1ac08b336
itest+lntemp: refactor testListChannels 2022-11-17 20:29:50 +08:00
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
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