ziggie
68b7aaa96f
switch: unlock mutex lock earlier
...
We now unlock the mutex lock of the switch as soon as possible to
avoid potetnial deadlock in the htlc switch.
2025-07-04 13:15:20 +02:00
Olaoluwa Osuntokun
b3eb9a3cb7
Merge pull request #10028 from ffranr/export-notifier-options
...
chainntnfs: export NotifierOptions and internal field for interface use
2025-07-03 13:28:08 -07:00
yyforyongyu
bac8c51076
docs: update release notes
2025-07-04 04:20:00 +08:00
yyforyongyu
c4c519a3ae
itest+lncfg: test the quiescence timeout behaivor
2025-07-04 04:20:00 +08:00
yyforyongyu
56fd8eeb43
lntest: add RPC SubscribePeerEvents
...
And a few assertion helpers.
2025-07-04 04:19:59 +08:00
yyforyongyu
d44b480977
lnd: fix notifying peer online event too early
...
We need to notify the peer is online only when it has been started
successfully.
2025-07-04 04:19:59 +08:00
yyforyongyu
2a45e8a0fa
itest: fix testQuiescence
...
The original test lets Bob send an HTLC to Alice, but Bob doesn't have
any balance to begin with. This commit now fixes it by explicitly
checking sending payment is allowed before quiescence, and forbidden
after.
2025-07-04 04:19:59 +08:00
yyforyongyu
463f51d371
lncfg: enable quiescence in non-dev environment
2025-07-04 04:19:59 +08:00
yyforyongyu
127b0e9f41
multi: add new config QuiescenceTimeout
...
This commit makes removes the `defaultQuiescenceTimeout` and makes it
configurable as different nodes have different network environment. In
addition the default timeout has been increased from 30s to 60s.
2025-07-04 04:19:59 +08:00
Yong
ffd944e8b7
Merge pull request #10012 from ziggie1984/fix-goroutine-leak
...
multi: prevent goroutine leak in brontide
2025-07-03 20:11:31 +08:00
yyforyongyu
240593a399
htlcswitch: log the error returned from SendMessage
2025-07-03 19:51:35 +08:00
yyforyongyu
d6c3400e4e
docs: update release notes
2025-07-03 19:51:35 +08:00
yyforyongyu
d9369ae1a8
htlcswitch: remove unnecessary prand.Seed
2025-07-03 19:51:35 +08:00
yyforyongyu
1b6ca8827e
htlcswitch: fix linters
...
Fix a few linter errors - these were not caught before as they were
configured to be ignored.
2025-07-03 19:51:33 +08:00
yyforyongyu
2bb8b90afd
htlcswitch: fix error not checked
...
As required by the linter.
2025-07-03 19:50:58 +08:00
yyforyongyu
31e166a6b3
htlcswitch: add processLocalUpdateFaillHTLC
2025-07-03 19:50:30 +08:00
yyforyongyu
765714e750
htlcswitch: add processLocalUpdateFulfillHTLC
2025-07-03 19:50:29 +08:00
yyforyongyu
c42bf9b545
htlcswitch: log err in the end in handleUpstreamMsg
2025-07-03 19:50:29 +08:00
yyforyongyu
87b490dfc4
htlcswitch: add processRemoteError
and processRemoteUpdateFee
2025-07-03 19:50:29 +08:00
yyforyongyu
4017104475
htlcswitch: add processRemoteRevokeAndAck
2025-07-03 19:50:29 +08:00
yyforyongyu
04abf96f60
htlcswitch: add processRemoteCommitSig
2025-07-03 19:50:29 +08:00
yyforyongyu
ad1566ee3f
htlcswitch: add processRemoteUpdateFailHTLC
2025-07-03 19:50:29 +08:00
yyforyongyu
e883a51a63
htlcswitch: add processRemoteUpdateFailMalformedHTLC
2025-07-03 19:50:28 +08:00
yyforyongyu
f9df5a9f51
htlcswitch: add processRemoteUpdateFulfillHTLC
2025-07-03 19:50:28 +08:00
yyforyongyu
212262bf88
htlcswitch: add processRemoteUpdateAddHTLC
2025-07-03 19:50:28 +08:00
yyforyongyu
83f658f714
htlcswitch: remove TODO and nolint
...
This old TODO is no longer relevant.
2025-07-03 19:50:28 +08:00
yyforyongyu
3af8281370
htlcswitch: add handler resumeLink
2025-07-03 19:50:25 +08:00
yyforyongyu
ca770bb4af
htlcswitch: notify channel active after reforwarding
...
The channel should only be considered active when its pending tasks are
finished, which includes,
1. sync channel state via reestablish.
2. send previous shutdown msg.
3. reset the mailbox's packets.
4. reforwarding logs loaded from restart.
When the above tasks are finished, the channel can be considered as
fully resumed from its previous disconnection.
2025-07-03 18:31:13 +08:00
yyforyongyu
09022b5f56
htlcswitch: add handler toggleBatchTicker
2025-07-03 18:31:12 +08:00
yyforyongyu
cccb447439
htlcswitch: add handler handleUpdateFee
2025-07-03 18:31:12 +08:00
yyforyongyu
e8b2035484
htlcswitch: add handler handleQuiescenceReq
2025-07-03 18:31:12 +08:00
yyforyongyu
30f9257a6b
htlcswitch: add handler handleHtlcResolution
2025-07-03 18:31:12 +08:00
ziggie
e6aff211df
docs: add release-notes
2025-07-03 06:28:00 +02:00
ziggie
ed8ad3d110
brontide: remove async goroutine to process gossip process result
...
We cannot rely on a response currently so we avoid spawning
goroutines. This is just a temporary fix to avoid the goroutine
leak.
2025-07-03 06:27:59 +02:00
ziggie
dedb75aea4
discovery: add comments
2025-07-03 06:27:38 +02:00
Oliver Gugger
8a03414190
Merge pull request #10017 from ellemouton/strictTypeForChanFeatures
...
refactor+multi: use *lnwire.FeatureVector for ChannelEdgeInfo features
2025-07-02 19:59:47 +02:00
ffranr
5cea874709
chainntnfs: export NotifierOptions and internal field for interface use
...
Export NotifierOptions and its internal field to enable external
satisfaction of the protofsm.DaemonAdapters interface.
2025-07-02 16:32:46 +01:00
Oliver Gugger
b5c84eab18
Merge pull request #9980 from GeorgeTsagk/enhance-aux-modifier
...
AuxTrafficShaper methods use first hop pub key
2025-07-02 16:50:57 +02:00
George Tsagkarelis
9ef92d9ffd
docs: add release note
2025-07-02 14:35:43 +02:00
George Tsagkarelis
4ad84627e1
htlcswitch+routing: PaymentBandwidth accepts channel peer pubkey argument
2025-07-02 12:09:24 +02:00
George Tsagkarelis
1793b1ab64
routing+htlcswitch: ProduceHtlcExtraData uses first hop pub key
2025-07-02 12:03:34 +02:00
Oliver Gugger
1d2e5472b3
Merge pull request #9572 from yyforyongyu/fix-custom-msg
...
rpcserver: remove duplicate info from `RoutingPolicy`
2025-07-02 09:16:17 +02:00
Olaoluwa Osuntokun
7be45c3c42
Merge pull request #10013 from Roasbeef/gemini-review
...
CI: add config.yaml for gemini code review
2025-07-01 16:52:51 -07:00
Oliver Gugger
538723e33b
Merge pull request #10016 from ellemouton/fixAccessManLogging
...
accessman: Fix pub key formatting in logs
2025-07-01 19:49:26 +02:00
Elle Mouton
2f2845dfc0
refactor+multi: use *lnwire.FeatureVector for ChannelEdgeInfo features
...
In this commit, we move the serialisation details of a channel's
features to the DB layer and change the `models` field to instead use a
more useful `*lnwire.FeatureVector` type.
This makes the features easier to work with and moves the serialisation
to where it is actually used.
2025-07-01 17:02:07 +02:00
Oliver Gugger
d8a12a5e57
Merge pull request #10011 from ellemouton/graphRefactor
...
refactor+graph/db: refactor preparations required for incoming SQL migration code
2025-07-01 15:58:29 +02:00
yyforyongyu
43ea309f2c
lnrpc: update description for RoutingPolicy.CustomRecords
2025-07-01 19:59:51 +08:00
yyforyongyu
9ed32bddf3
docs: update release notes for 0.20
2025-07-01 19:59:50 +08:00
yyforyongyu
650e72518c
rpcserver: remove duplicate info from RoutingPolicy
...
We remove the inbound fee record from `RoutingPolicy.CustomRecords` as
we already have fields `InboundFeeBaseMsat` and `InboundFeeRateMilliMsat`.
2025-07-01 19:59:50 +08:00
yyforyongyu
624dc6c26a
lntest: assert CustomRecords
fields on channel policy
...
Make sure the `CustomRecords` field is asserted.
2025-07-01 19:59:50 +08:00