Ran
|
Jobs
4
|
Files
976
|
Run time
2min
|
Badge
README BADGES
|
github
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.
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
Lines | Coverage | ∆ | File |
---|---|---|---|
6 |
77.9 |
-0.16% | graph/builder.go |
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 |
ID | Job ID | Ran | Files | Coverage | |
---|---|---|---|---|---|
1 | itest-bitcoind - 13436790699.1 | 824 |
48.36 |
GitHub Action Run | |
2 | itest-neutrino - 13436790699.2 | 824 |
47.92 |
GitHub Action Run | |
3 | itest-btcd - 13436790699.3 | 824 |
48.3 |
GitHub Action Run | |
4 | unit - 13436790699.4 | 854 |
57.64 |
GitHub Action Run |
Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line |
---|