Commit graph

11954 commits

Author SHA1 Message Date
yyforyongyu
104b7a09db
itest: fix inheritance when creating timeout ctxt
This commit fixes the issue where a wrong context being inherited to
create a timeout context. When a parent context timed out, all its
children contexts also timed out, even the children contexts had a
larger timeout value. This means it only makes sense to inherite from a
parent when its children have smaller timeout value. Given the setup of
the itest, all the timeout contexts need to be created from a context
background(hence no timeout on the parent) unless there's an explicit
timeout bound we want to set.
2021-08-24 12:28:40 +08:00
yyforyongyu
edffd65e92
itest: manage context timeout in utils.go
This commit finishes moving the context management into utils.go.
2021-08-24 12:28:40 +08:00
yyforyongyu
a6c5255e77
itest: manage context timeout inside completePaymentRequests 2021-08-24 12:28:39 +08:00
yyforyongyu
5a94919b7e
itest: manage context timeout inside network harness
This is the last commit to refactor the context management such that all
the timeout are managed inside the network harness.
2021-08-24 12:28:35 +08:00
yyforyongyu
d9e9238b0c
itest: make WaitForTxInMempool a private method 2021-08-24 12:16:46 +08:00
yyforyongyu
16403da91e
itest: manage context in CloseChannel and AssertChannelExists 2021-08-24 12:16:46 +08:00
yyforyongyu
3e26d77f91
itest: manage context inside WaitForChannelOpen and WaitForChannelClose 2021-08-24 12:16:46 +08:00
yyforyongyu
1629858a3d
itest: manage context inside assertions - II
This commit continues moving context management into assertions.
2021-08-24 12:16:40 +08:00
yyforyongyu
02e4c3ad4c
itest: manage context inside assertions - I
This commit changes the methods assertTxLabel, assertReports,
assertSweepFound, and sendAndAssertSuccess to manage their own context
with deadline.
2021-08-24 11:17:20 +08:00
yyforyongyu
74f8fe482d
itest: manage context inside EnsureConnected 2021-08-24 11:06:44 +08:00
yyforyongyu
d10d1e3e24
itest: manage context inside SendCoins 2021-08-24 11:06:44 +08:00
yyforyongyu
8de495b96b
itest: initialize context inside ConnectNodes 2021-08-24 11:06:43 +08:00
yyforyongyu
dca20d80a7
itest: fix context leak in openChannelAndAssert
In this commit, we put the context initialization inside
openChannelAndAssert, thus saving us a few lines and making sure the
context is always properly handled.
2021-08-24 11:06:43 +08:00
ErikEk
599c221d30 docs: note fix 2021-08-24 02:23:46 +02:00
ErikEk
ca7192f8fd itest: include compressed btcd backend logs 2021-08-24 02:00:44 +02:00
Oliver Gugger
6d70468ad5
lnrpc: add extended master key to walletunlocker 2021-08-23 11:26:00 +02:00
Oliver Gugger
d329655bf6
mod: update to latest btcwallet dep 2021-08-23 11:25:39 +02:00
Olaoluwa Osuntokun
4487acc5d9 docs/release-notes: add tor hybrid mode, fix mark down headers 2021-08-22 14:08:20 -05:00
Olaoluwa Osuntokun
ec3af13081
Merge pull request #5410 from adriansmares/feature/add-hybrid-mode
Add Tor hybrid connectivity mode
2021-08-22 12:05:25 -07:00
Oliver Gugger
951e2164fd
Merge pull request #5536 from Kixunil/systemd-notify
Implemented systemd notify
2021-08-20 19:19:34 +02:00
Oliver Gugger
746a7dfbfc
Merge pull request #5559 from de6df1re/lntest-itest-bugfix
itest: fix payment test error message
2021-08-20 19:01:13 +02:00
de6df1re
6348da1587 docs: update release note 2021-08-20 10:09:35 -05:00
de6df1re
29157fe02a itest: fix payment test 2021-08-20 10:01:45 -05:00
Martin Habovstiak
4bcb32753f lnd+signal: implement systemd notify
This adds support for notifying systemd about the state of LND. It
notifies systemd just before waiting for wallet password or, if
`wallet-password-file` was specified, right after unlocking the wallet.

This means that "ready" represents RPC being available for intended use.
It's intentional, so that client services can use `After=` in `systemd`
configuration to avoid misleading error messages about missing files or
refused connections.

Part of #4470
2021-08-20 13:26:48 +02:00
Oliver Gugger
9e8b9ccd4c
Merge pull request #5615 from yyforyongyu/itest-fix-commitment-deadline
itest: fix commit deadline for neutrino backend
2021-08-19 16:40:14 +02:00
yyforyongyu
ba116f7ff1
docs: update release note 2021-08-19 19:35:28 +08:00
yyforyongyu
fda66f6a43
itest: add an extra utxo when using neutrino 2021-08-19 19:35:20 +08:00
yyforyongyu
24e654ffc4
contractcourt: more verbose logging for anchor sweeping 2021-08-19 19:33:36 +08:00
Olaoluwa Osuntokun
52767a7567
Merge pull request #5591 from Crypt-iQ/rest_sendpayment_fix_07302021
rpcserver: validate FinalCltvDelta and CltvLimit for REST
2021-08-16 17:01:31 -07:00
Olaoluwa Osuntokun
f6e9f01859
Merge pull request #5442 from bottlepay/zero-output-psbt
walletrpc+lncli: allow zero output psbt funding
2021-08-16 16:50:52 -07:00
Olaoluwa Osuntokun
e05b666d54
Merge pull request #5508 from bottlepay/improve-logging
peer+htlcswitch: improve logging
2021-08-16 16:50:22 -07:00
Oliver Gugger
958119a12a
Merge pull request #5609 from mateuszmp/patch-2
Docs: Replacing deprecated import in JS readme
2021-08-16 10:24:14 +02:00
Joost Jager
925229f9df
walletrpc+lncli: allow zero output psbt funding
To support the cpfp fee bump use case where no external outputs are
required.
2021-08-16 08:41:50 +02:00
Joost Jager
09386213be
htlcswitch: log link message with channel point
In lnd, log messages about channels are generally logged with a
reference to their channel point rather than the short channel id.
Channel point is reorg-resistant and also easier to look up in for
example a block explorer.

In the link however, all log messages are accompanied by short channel
id. This makes it difficult to grep a log for all channel activity. The
PEER message for example which are often crucial to analyse, are logged
with channel points.

This commit modifies the link logging to also use channel points.
2021-08-16 08:24:35 +02:00
yyforyongyu
81df01acca
docs: explicitly set line wrap rules for error messages [skip ci] 2021-08-16 11:48:33 +08:00
Abubakar Nur Khalil
e70349644b
trivial: minor grammar and typo fix [skip ci] 2021-08-13 03:36:40 +01:00
Oliver Gugger
5499a35987
Merge pull request #5395 from Crypt-iQ/fuzz_lnwire_patch_06162021
fuzz/lnwire: minor touch-ups, remove MaxPayloadLength
2021-08-12 09:30:38 +02:00
Oliver Gugger
f7384a09e6
Merge pull request #5620 from szollo/master
docs: fix inconsistent naming of channel.backup [skip ci]
2021-08-12 09:26:13 +02:00
Stevie Zollo
00f7534e06
docs: fix inconsistent naming of channel.backup [skip ci] 2021-08-12 00:26:53 +02:00
eugene
c3ac95abbd
docs: update release notes for 0.14 2021-08-11 16:59:16 -04:00
eugene
9cea8741b1
fuzz/lnwire: minor touch-ups, remove MaxPayloadLength
This commit makes the fuzz/lnwire tests build and run without
crashing.
2021-08-11 16:59:16 -04:00
eugene
cbbad3a674
docs: update release notes for 0.14 2021-08-11 15:37:53 -04:00
eugene
d0191cb5ed
rpcserver: validate FinalCltvDelta and CltvLimit for REST
Missed this check in PR #5293.
2021-08-11 15:37:53 -04:00
Oliver Gugger
07fa98fca5
Merge pull request #5614 from yyforyongyu/skip-release-note
trivial: skip release note for trivial fixes
2021-08-11 11:50:15 +02:00
Oliver Gugger
dee9b9a9b1
Merge pull request #5603 from Crypt-iQ/peer_switch_refactor_08022021
htlcswitch+peer: introduce packetHandler, ChannelUpdateHandler interfaces for cleaner separation
2021-08-11 09:31:02 +02:00
Oliver Gugger
a5e0ece64b
Merge pull request #5616 from yyforyongyu/fix-context-timeout
itest: fix close channel context timeout
2021-08-11 09:19:17 +02:00
yyforyongyu
6d7fef7742
docs: update release note 2021-08-11 12:45:14 +08:00
yyforyongyu
8eddc50beb
itest: remove context creations outside close channel assertion 2021-08-11 12:44:39 +08:00
yyforyongyu
2e4417454b
itest: create context with timeout in closeChannelAndAssertType 2021-08-11 12:41:57 +08:00
Olaoluwa Osuntokun
be341bcd68
Merge pull request #5528 from guggero/keep-channel-backup-local-force-close
backups: Keep channel backup in case of local force close
2021-08-10 19:31:59 -07:00