Skip to content

Conversation

@pm47
Copy link
Member

@pm47 pm47 commented Sep 2, 2021

We use an event ChannelUpdateParametersChanged for the sole purpose of tracking changes to channel_update.

First two commits are a rebase on improvements made in previous PRs (mostly simplify the restore flow by including it in the general "update while offline" scenario from #1922).

🤞

@codecov-commenter
Copy link

codecov-commenter commented Sep 2, 2021

Codecov Report

Merging #1935 (be80a5b) into master (54fa208) will decrease coverage by 78.55%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##           master   #1935       +/-   ##
==========================================
- Coverage   87.53%   8.98%   -78.56%     
==========================================
  Files         158     158               
  Lines       12231   12273       +42     
  Branches      505     531       +26     
==========================================
- Hits        10707    1103     -9604     
- Misses       1524   11170     +9646     
Impacted Files Coverage Δ
...r-core/src/main/scala/fr/acinq/eclair/Eclair.scala 0.00% <0.00%> (-52.99%) ⬇️
...c/main/scala/fr/acinq/eclair/channel/Channel.scala 0.80% <0.00%> (-85.34%) ⬇️
...in/scala/fr/acinq/eclair/channel/ChannelData.scala 0.00% <ø> (-100.00%) ⬇️
...main/scala/fr/acinq/eclair/db/DbEventHandler.scala 0.00% <0.00%> (-92.96%) ⬇️
.../main/scala/fr/acinq/eclair/db/DualDatabases.scala 0.00% <0.00%> (ø)
...c/main/scala/fr/acinq/eclair/db/pg/PgAuditDb.scala 0.00% <0.00%> (-99.24%) ⬇️
...cala/fr/acinq/eclair/db/sqlite/SqliteAuditDb.scala 9.84% <0.00%> (-89.38%) ⬇️
...fr/acinq/eclair/payment/relay/ChannelRelayer.scala 0.00% <ø> (-100.00%) ⬇️
...n/scala/fr/acinq/eclair/router/Announcements.scala 56.52% <0.00%> (-43.48%) ⬇️
...q/eclair/wire/protocol/LightningMessageTypes.scala 26.66% <ø> (-70.00%) ⬇️
... and 141 more

pm47 added 2 commits September 2, 2021 17:26
The `Register` should be used to channel actors, not the `Router`.
The former tracks all channels, whereas the latter only contains
channels in certain states. We only query the `Router` when we need
reference to external (public) nodes and channels.
@pm47 pm47 marked this pull request as ready for review September 3, 2021 09:33
@pm47 pm47 requested review from t-bast and thomash-acinq September 3, 2021 09:33
thomash-acinq
thomash-acinq previously approved these changes Sep 3, 2021
thomash-acinq
thomash-acinq previously approved these changes Sep 3, 2021
Copy link
Member

@t-bast t-bast left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Concept ACK, a couple small comments

t-bast
t-bast previously approved these changes Sep 3, 2021
@pm47 pm47 merged commit daace53 into master Sep 3, 2021
@pm47 pm47 deleted the dedicated-event-update-relay-fees branch September 3, 2021 16:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants