• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

lightningnetwork / lnd / 13436790699
49%
master: 67%

Build:
Build:
LAST BUILD BRANCH: fixSQLStrHelper
DEFAULT BRANCH: master
Ran 20 Feb 2025 02:04PM UTC
Jobs 4
Files 976
Run time 2min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

20 Feb 2025 01:40PM UTC coverage: 58.78% (-0.01%) from 58.794%
13436790699

Pull #9534

github

ellemouton
graph: refactor Builder network message handling

The exposed AddNode, AddEdge and UpdateEdge methods of the Builder are
currently synchronous since even though they pass messages to the
network handler which spins off the handling in a goroutine, the public
methods still wait for a response from the handling before returning.
The only part that is actually done asynchronously is the topology
notifications.

We previously tried to simplify things in [this
commit](https://github.com/lightningnetwork/lnd/pull/9476/commits/d757b3bcf)
but we soon realised that there was a reason for sending the messages to
the central/synchronous network handler first: it was to ensure
consistency for topology clients: ie, the ordering between when there is
a new topology client or if it is cancelled needs to be consistent and
handled synchronously with new network updates. So for example, if a new
update comes in right after a topology client cancels its subscription,
then it should _not_ be notified. Similariy for new subscriptions. So
this commit was reverted soon after.

We can, however, still simplify things as is done in this commit by
noting that _only topology subscriptions and notifications_ need to be
handled separately. The actual network updates do not need to. So that
is what is done here.

This refactor will make moving the topology subscription logic to a new
subsystem later on much easier.
Pull Request #9534: graph: refactor Builder network message handling

38 of 44 new or added lines in 1 file covered. (86.36%)

55 existing lines in 11 files now uncovered.

136048 of 231453 relevant lines covered (58.78%)

19264.6 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
6
77.9
-0.16% graph/builder.go

Uncovered Existing Lines

Lines Coverage ∆ File
2
85.75
-0.22% discovery/syncer.go
2
76.15
-0.08% peer/brontide.go
3
82.84
-0.68% channeldb/migration30/migration.go
3
79.71
-0.12% discovery/gossiper.go
3
77.9
-0.16% graph/builder.go
4
69.84
-1.31% chainntnfs/interface.go
4
97.48
-2.52% fn/v2/list.go
4
93.19
-0.37% htlcswitch/mailbox.go
5
81.75
-0.72% chainntnfs/btcdnotify/btcd.go
6
85.92
-1.81% watchtower/wtclient/queue.go
19
72.87
-5.99% channeldb/migration30/revocation_log.go
Jobs
ID Job ID Ran Files Coverage
1 itest-bitcoind - 13436790699.1 20 Feb 2025 02:07PM UTC 824
48.36
GitHub Action Run
2 itest-neutrino - 13436790699.2 20 Feb 2025 02:06PM UTC 824
47.92
GitHub Action Run
3 itest-btcd - 13436790699.3 20 Feb 2025 02:04PM UTC 824
48.3
GitHub Action Run
4 unit - 13436790699.4 20 Feb 2025 02:14PM UTC 854
57.64
GitHub Action Run
Source Files on build 13436790699
  • Tree
  • List 976
  • Changed 233
  • Source Changed 0
  • Coverage Changed 32
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #9534
  • PR Base - master (#13407828243)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc