Commit Graph

11874 Commits

Author SHA1 Message Date
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
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
Olaoluwa Osuntokun
b0e9442ba5 Merge pull request #4884 from yyforyongyu/3004-buffer-pool
lnwire: fix heap escapes to reduce gc pressure
2021-08-10 19:13:08 -07:00
Olaoluwa Osuntokun
e9fa44f49f Merge pull request #5613 from Roasbeef/release-notes-checklist
docs: add release notes to PR checklist and contributor guidelines
2021-08-10 15:58:44 -07:00
Olaoluwa Osuntokun
f33752da3b docs/release-notes: mention change to contribution guidelines 2021-08-10 15:56:26 -07:00
Olaoluwa Osuntokun
85e3dd3e45 docs: add release notes to PR checklist and contributor guidelines 2021-08-10 15:56:17 -07:00
eugene
db4a488e23 docs: update 0.14 release notes 2021-08-10 17:15:52 -04:00
eugene
23a4fad4ac htlcswitch+peer: CreateAndAddLink in switch, add messageSwitch to peer
This commit allows the peer to be tested without relying on a raw
htlcswitch.Switch pointer. This is accomplished by using a messageSwitch
interface and adding the CreateAndAddLink method to the
htlcswitch.Switch.
2021-08-10 17:15:52 -04:00
eugene
e72468646c htlcswitch+peer: embed ChannelUpdateHandler in ChannelLink
GetLink, GetLinksByInterface now use ChannelUpdateHandler.
2021-08-10 17:15:52 -04:00
eugene
051cd8793a htlcswitch: introduce and embed packetHandler interface in ChannelLink
This will allow separating the now-private *htlcPacket methods from
the publicly-used ChannelLink interface methods.
2021-08-10 17:15:51 -04:00
eugene
6c6e353597 htlcswitch+peer: pass BestHeight to ChannelLinkConfig
This allows non-test usages of ChannelLinkConfig to omit the raw
htlcswitch.Switch pointer.
2021-08-10 17:15:49 -04:00
yyforyongyu
b64f413718 trivial: skip release note for trivial fixes [skip ci] 2021-08-11 00:17:10 +08:00
András Bánki-Horváth
23c3597d13 Merge pull request #5607 from bhandras/payments_test_flake_fix
itests: payments test flake fix
2021-08-10 09:15:56 +02:00
yyforyongyu
a0e958f96f docs: add release notes for lnwire gc 2021-08-10 05:54:45 +08:00
yyforyongyu
2cf6969dbc lnwire: refactor Encode to use specific writers - III
This commit refactors the remaining usage of WriteElements. By
replacing the interface types with concrete types for the params used in
the methods, most of the encoding of the messages now takes zero heap
allocations.
2021-08-10 05:36:09 +08:00
yyforyongyu
c1ad9cc60f lnwire: refactor Encode to use specific writers - II
This commit takes another 10 message types and refactors their Encode
method to use specific writers. The following commit will refactor the
rest.
2021-08-10 05:36:09 +08:00
yyforyongyu
563ff7266a lnwire: refactor Encode to use specific writers - I
This commit takes 10 types of messages and refactors their Encode method
to use specific writers. The following commits will refactor the rest.
2021-08-10 05:36:09 +08:00
yyforyongyu
f04410c546 lnwire: add independent writers
This commit breaks the method WriteElement and adds specific writers for
each of the data types.
2021-08-10 05:36:09 +08:00
yyforyongyu
e381b33b21 lnwire: fix typo in docs 2021-08-10 05:36:08 +08:00
yyforyongyu
aa1561c60d lnwire: use write buffer in Encode methods
This commit changes the WriteElement and WriteElements methods to take a
write buffer instead of io.Writer. The corresponding Encode methods are
changed to use the write buffer.
2021-08-10 05:36:08 +08:00
yyforyongyu
879d3cc86c wtwire: remove reference from lnwire 2021-08-10 05:36:08 +08:00
yyforyongyu
f212f1aa20 lnwire: refactor WriteMessage to use bytes.Buffer
This commit changes the method WriteMessage to use bytes.Buffer to save
heap allocations. A unit test is added to check the method is
implemented as expected.
2021-08-10 05:36:08 +08:00
yyforyongyu
77862e45af lnwire: add benchmark tests to ReadMessage and WriteMessage 2021-08-10 05:36:07 +08:00
yyforyongyu
4b12f40a48 lnwire: remove unused MaxMessagePayload const
MaxMessagePayload and MaxSliceLength are duplicate variables. This
commit deletes MaxMessagePayload and keeps MaxSliceLength.
2021-08-10 05:36:07 +08:00
Oliver Gugger
527c6f06e2 docs: add release notes 2021-08-09 16:06:56 +02:00
Oliver Gugger
f7943448b9 itest: fix channel open and close ntfn test
Because we now get one more update per channel when closing it, we need
to update our test that looks at the close notifications sent by the
SubscribeChannelEvent RPC.
2021-08-09 16:06:56 +02:00
Oliver Gugger
bb4c754504 itest: test local force close restore scenario
We want to make sure we can recover funds from a channel that was force
closed by the local node just before the node needed to be restored. We
add a special test case with specific assertions for that scenario.
2021-08-09 13:55:37 +02:00
Oliver Gugger
294fba0bc5 itest: fix channel backup subscription test
With one more notification event being dispatched in the local force
close case we need to update one of the integration tests to account for
the additional message.
2021-08-09 13:55:35 +02:00
Oliver Gugger
06a693f10e lnrpc+rpcserver: add new fully resolved chan update event
This commit adds the new channel update event for a channel that is now
fully resolved to the event subscription RPC.
2021-08-09 13:55:34 +02:00