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

lightningnetwork / lnd / 12372503094
59%
master: 65%

Build:
Build:
LAST BUILD BRANCH: fix-scid-tlv-length
DEFAULT BRANCH: master
Ran 17 Dec 2024 12:18PM UTC
Jobs 1
Files 852
Run time 3min
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

17 Dec 2024 11:54AM UTC coverage: 57.53% (-1.1%) from 58.595%
12372503094

Pull #9315

github

yyforyongyu
contractcourt: offer outgoing htlc one block earlier before its expiry

We need to offer the outgoing htlc one block earlier to make sure when
the expiry height hits, the sweeper will not miss sweeping it in the
same block. This also means the outgoing contest resolver now only does
one thing - watch for preimage spend till height expiry-1, which can
easily be moved into the timeout resolver instead in the future.
Pull Request #9315: Implement `blockbeat`

1445 of 2007 new or added lines in 26 files covered. (72.0%)

19149 existing lines in 249 files now uncovered.

102405 of 178004 relevant lines covered (57.53%)

24730.07 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
97.83
chainio/consumer.go
1
6.5
-90.22% log.go
3
66.67
chainio/log.go
5
73.68
chainio/mocks.go
8
86.98
-10.12% sweep/tx_input_set.go
11
54.93
-33.4% contractcourt/breach_resolver.go
12
76.3
-16.45% contractcourt/anchor_resolver.go
12
63.28
-17.53% contractcourt/htlc_outgoing_contest_resolver.go
20
75.08
-8.98% contractcourt/channel_arbitrator.go
33
80.59
chainio/dispatcher.go
36
71.65
-17.62% contractcourt/htlc_timeout_resolver.go
38
71.97
-8.87% contractcourt/htlc_incoming_contest_resolver.go
40
74.19
-18.01% sweep/fee_bumper.go
45
79.68
-10.42% contractcourt/htlc_success_resolver.go
53
66.98
-18.25% contractcourt/commit_sweep_resolver.go
67
43.35
-46.61% sweep/sweeper.go
83
0.28
-63.4% server.go
94
37.55
-41.76% contractcourt/chain_arbitrator.go

Uncovered Existing Lines

Lines Coverage ∆ File
1
97.83
-2.17% chanbackup/recover.go
1
73.33
-6.67% labels/labels.go
2
82.86
-2.86% chanbackup/backupfile.go
2
84.32
-0.13% channeldb/invoices.go
2
80.32
-0.65% watchtower/wtclient/session_negotiator.go
2
77.78
-1.71% channeldb/witness_cache.go
2
81.48
-0.67% funding/batch.go
2
86.26
-0.95% invoices/invoice_expiry_watcher.go
2
81.48
-3.7% chanacceptor/chainedacceptor.go
2
67.71
0.0% lnwallet/sigpool.go
2
66.67
-1.48% brontide/listener.go
2
96.0
-2.0% watchtower/wtclient/candidate_iterator.go
2
93.19
-0.37% htlcswitch/mailbox.go
2
97.48
-1.26% fn/v2/list.go
2
80.0
-4.0% record/mpp.go
2
77.18
-1.34% channeldb/waitingproof.go
2
58.33
-8.33% htlcswitch/failure_detail.go
2
77.56
-0.3% htlcswitch/circuit_map.go
2
73.98
-1.63% htlcswitch/circuit.go
2
78.92
-1.08% watchtower/lookout/justice_descriptor.go
2
50.0
-50.0% batch/interface.go
2
80.15
-1.47% channeldb/meta.go
3
92.34
-1.15% graph/db/graph_cache.go
3
83.78
-8.11% lnwallet/chainfee/rates.go
3
93.87
-1.42% chanfitness/chanevent.go
3
0.0
-15.79% lncfg/config.go
3
64.0
-12.0% lnwire/update_fail_htlc.go
3
62.5
-37.5% watchtower/wtdb/session_id.go
3
50.0
-50.0% lncfg/monitoring_off.go
3
45.45
-27.27% lncfg/rpcmiddleware.go
3
0.0
-42.86% monitoring/monitoring_off.go
3
31.25
-9.38% intercepted_forward.go
3
84.21
-15.79% graph/errors.go
3
74.6
-4.76% channeldb/peers.go
3
76.36
-5.45% lnwire/revoke_and_ack.go
3
75.15
-0.61% channeldb/forwarding_package.go
3
87.18
-7.69% lnwire/short_channel_id.go
3
86.15
-4.62% watchtower/wtdb/client_session.go
3
63.46
-5.77% lnwire/update_fulfill_htlc.go
3
57.14
-21.43% lntypes/txsize.go
3
79.63
-1.85% channeldb/reports.go
3
70.83
-12.5% lnwire/stfu.go
3
75.0
-25.0% routing/nodepair.go
3
87.57
-1.62% chainntnfs/mempool.go
3
88.89
-11.11% keychain/ecdh.go
3
73.91
-4.35% lnwire/update_add_htlc.go
3
63.33
-10.0% lnwire/update_fail_malformed_htlc.go
3
13.18
0.0% watchtower/wtdb/migration8/range_index.go
3
0.0
-100.0% chainreg/chainparams.go
3
84.75
-5.08% lnwire/commit_sig.go
4
21.43
-28.57% build/deployment.go
4
61.9
-19.05% netann/node_signer.go
4
0.0
-40.0% lncfg/caches.go
4
86.32
-4.21% subscribe/subscribe.go
4
0.0
-66.67% lncfg/interface.go
4
0.0
-40.0% lncfg/htlcswitch.go
4
73.53
-0.46% channeldb/payments.go
4
0.0
-40.0% lncfg/chain.go
4
72.34
-8.51% graph/db/models/node.go
4
95.56
-2.96% sweep/fee_function.go
4
90.84
-0.96% internal/musig2v040/sign.go
4
51.28
-5.13% invoices/resolution_result.go
4
34.69
-8.16% htlcswitch/hodl/flags.go
4
77.27
-1.65% watchtower/wtserver/server.go
4
88.01
-1.26% invoices/update.go
4
42.86
-57.14% keychain/derivation.go
4
29.03
-12.9% lncfg/cluster.go
4
88.15
-1.48% aezeed/cipherseed.go
5
79.7
-1.49% macaroons/store.go
5
83.87
-4.03% lnwallet/chanfunding/canned_assembler.go
5
76.19
-7.94% chainntnfs/best_block_view.go
5
0.0
-100.0% lnutils/errors.go
5
75.97
-1.14% channeldb/payment_control.go
5
85.45
-9.09% htlcswitch/failure.go
5
68.38
-1.29% autopilot/graph.go
5
89.1
-3.21% channeldb/forwarding_log.go
5
89.78
-2.22% routing/chainview/neutrino.go
5
68.75
-31.25% lnwire/pong.go
5
72.96
-0.61% watchtower/wtclient/client.go
5
83.05
-8.47% routing/payment_session_source.go
6
82.71
-1.33% chanbackup/single.go
6
78.99
-4.35% input/size.go
6
50.0
-21.43% lncfg/wtclient.go
6
68.0
-12.0% record/amp.go
6
0.0
-35.29% lncfg/routing.go
6
82.97
-1.89% netann/chan_status_manager.go
6
0.0
-37.5% zpay32/hophint.go
6
73.92
-0.79% contractcourt/nursery_store.go
6
13.21
-11.32% build/config_dev.go
6
87.59
-2.26% channeldb/mp_payment.go
6
0.0
-16.22% lncfg/pprof.go
6
0.0
-27.27% build/log_shutdown.go
6
0.0
-100.0% lncfg/protocol_legacy_on.go
7
86.85
-2.42% routing/blinding.go
7
29.17
-29.17% lncfg/sweeper.go
7
92.09
-5.04% watchtower/wtpolicy/policy.go
7
0.0
-58.33% lncfg/invoices.go
7
0.0
-46.67% lncfg/remotesigner.go
7
73.33
-4.24% macaroons/service.go
8
89.59
-0.94% routing/pathfind.go
8
89.52
-3.23% lnwallet/chanfunding/coin_select.go
8
87.48
-1.57% routing/result_interpretation.go
8
66.67
-22.22% channeldb/options.go
8
94.07
-3.16% lnwire/message.go
8
66.56
-2.62% chainntnfs/interface.go
8
79.49
-20.51% graph/stats.go
8
88.46
-7.69% watchtower/blob/type.go
9
0.0
-81.82% lncfg/gossip.go
9
80.3
-2.22% routing/missioncontrol_store.go
9
14.63
-21.95% build/log.go
9
80.3
-6.82% peer/ping_manager.go
9
70.47
-1.03% contractcourt/utxonursery.go
10
68.47
-4.93% sweep/txgenerator.go
10
41.67
-41.67% macaroons/auth.go
10
89.37
-2.42% discovery/sync_manager.go
10
0.0
-58.82% lnwallet/rpcwallet/healthcheck.go
11
82.23
-1.59% chainntnfs/neutrinonotify/neutrino.go
11
51.75
-4.28% funding/commitment_type_negotiation.go
11
0.0
-100.0% sweeper_wallet.go
11
81.21
-6.67% routing/probability_apriori.go
11
77.37
-4.53% routing/payment_session.go
11
77.78
-11.11% discovery/ban.go
12
0.0
-15.19% autopilot/combinedattach.go
12
44.83
-41.38% graph/db/options.go
12
73.15
-1.64% lnwallet/chancloser/chancloser.go
13
64.86
-35.14% contractcourt/htlc_lease_resolver.go
13
87.24
-6.63% routing/control_tower.go
13
76.3
-16.45% contractcourt/anchor_resolver.go
13
0.0
-50.0% cmd/lnd/main.go
13
69.57
-11.3% zpay32/invoice.go
13
80.78
-4.63% chanfitness/chaneventstore.go
13
53.17
-10.32% input/signdescriptor.go
13
72.16
-0.71% watchtower/wtdb/client_db.go
13
40.0
-13.0% lnwallet/errors.go
14
86.98
-10.12% sweep/tx_input_set.go
14
66.98
-18.25% contractcourt/commit_sweep_resolver.go
15
67.39
-32.61% watchtower/wtclient/stats.go
15
80.88
-7.35% sweep/walletsweep.go
15
77.57
-14.02% witness_beacon.go
15
57.45
-31.91% lnwire/custom.go
15
65.58
-4.87% routing/localchans/manager.go
15
54.93
-33.4% contractcourt/breach_resolver.go
15
79.38
-4.69% internal/musig2v040/context.go
16
64.62
-8.21% watchtower/lookout/lookout.go
16
74.26
-15.84% invoices/modification_interceptor.go
16
36.11
-44.44% build/config.go
16
0.0
-44.44% lncfg/healthcheck.go
17
56.2
-4.14% tls_manager.go
17
0.0
-54.84% htlcswitch/linkfailure.go
17
63.28
-17.53% contractcourt/htlc_outgoing_contest_resolver.go
18
54.55
-6.29% routing/probability_bimodal.go
19
32.08
-35.85% keychain/signer.go
19
0.0
-61.29% htlcswitch/hodl/config_dev.go
19
79.63
-3.87% contractcourt/taproot_briefcase.go
20
0.0
-86.96% routing/graph.go
20
0.0
-90.91% build/handlers.go
21
72.83
-22.83% input/taproot.go
21
74.22
-9.33% lncfg/address.go
21
61.21
-3.74% watchtower/wtclient/manager.go
22
74.25
-8.21% invoices/invoices.go
22
86.73
-1.86% chainntnfs/txnotifier.go
24
88.07
-3.29% routing/payment_lifecycle.go
24
71.97
-8.87% contractcourt/htlc_incoming_contest_resolver.go
24
81.3
-3.53% lnwire/onion_error.go
24
21.74
-52.17% build/version.go
26
45.8
-19.85% lnwallet/interface.go
27
83.89
-4.73% routing/blindedpath/blinded_path.go
27
0.0
-77.14% chainreg/taproot_check.go
28
39.29
-33.33% htlcswitch/hop/error_encryptor.go
29
0.0
-13.12% autopilot/manager.go
30
79.68
-10.42% contractcourt/htlc_success_resolver.go
31
12.5
-64.58% watchtower/conf.go
31
0.0
-81.58% graph/graphsession/graph_session.go
32
0.0
-94.12% netann/node_announcement.go
32
72.11
-10.88% chanacceptor/rpcacceptor.go
34
76.44
-19.54% routing/missioncontrol_state.go
35
45.99
-25.55% brontide/conn.go
35
5.45
-63.64% build/logrotator.go
36
78.66
-3.66% channeldb/db.go
37
30.49
-45.12% channelnotifier/channelnotifier.go
37
73.08
-7.12% lnwallet/reservation.go
37
0.0
-90.24% peernotifier/peernotifier.go
38
54.02
-21.84% input/musig2_session_manager.go
39
82.87
-4.95% lnwallet/commitment.go
40
81.62
-4.38% discovery/syncer.go
41
63.54
-22.65% feature/manager.go
42
54.81
-31.11% macaroons/constraints.go
43
68.21
-15.36% keychain/btcwallet.go
45
59.0
-18.83% htlcswitch/decayedlog.go
46
66.67
-15.03% lnwallet/chanfunding/psbt_assembler.go
48
33.4
-9.43% lnwallet/chainfee/estimator.go
48
72.86
-13.71% lnwallet/chanfunding/wallet_assembler.go
49
14.46
-59.04% lnwallet/btcwallet/blockchain.go
49
0.0
-56.32% build/handler_sets.go
50
70.65
-10.87% htlcswitch/interceptable_switch.go
51
84.23
-2.77% input/script_utils.go
51
75.71
-1.62% graph/db/graph.go
52
80.34
-4.28% invoices/invoiceregistry.go
52
0.0
-89.66% htlcswitch/sequencer.go
55
58.04
-12.28% walletunlocker/service.go
55
72.05
-8.01% chainntnfs/bitcoindnotify/bitcoind.go
58
40.71
-41.43% build/sub_logger.go
58
73.99
-7.76% chainntnfs/btcdnotify/btcd.go
59
6.58
-77.63% peer/musig_chan_closer.go
65
61.09
-20.9% lnwallet/btcwallet/signer.go
70
0.0
-35.0% pilot.go
78
72.17
-15.51% routing/missioncontrol.go
84
68.27
-20.19% aliasmgr/aliasmgr.go
84
0.0
-67.74% signal/signal.go
85
0.0
-62.04% watchtower/standalone.go
87
38.25
-30.53% input/musig2.go
92
0.0
-88.46% channel_notifier.go
108
4.44
-20.85% lncfg/db.go
109
69.36
-10.0% graph/builder.go
110
6.5
-90.22% log.go
115
73.41
-4.62% channeldb/channel.go
128
71.65
-17.62% contractcourt/htlc_timeout_resolver.go
133
50.59
-31.59% lnwallet/btcwallet/psbt.go
134
72.74
-12.51% routing/router.go
147
44.81
-47.73% input/input.go
150
0.0
-81.52% discovery/chan_series.go
156
74.19
-18.01% sweep/fee_bumper.go
162
69.35
-12.08% contractcourt/breach_arbitrator.go
165
0.0
-73.33% chanrestore.go
166
82.09
-2.59% lnwallet/channel.go
183
75.08
-8.98% contractcourt/channel_arbitrator.go
189
38.01
-40.82% htlcswitch/hop/iterator.go
192
67.19
-11.17% lnwallet/wallet.go
206
71.26
-9.21% discovery/gossiper.go
207
68.26
-5.78% funding/manager.go
212
50.73
-20.6% contractcourt/briefcase.go
214
60.4
-18.46% lnwallet/btcwallet/btcwallet.go
215
31.51
-47.05% input/witnessgen.go
219
5.59
-72.04% rpcperms/middleware_handler.go
219
71.82
-11.45% htlcswitch/switch.go
221
55.89
-26.28% contractcourt/chain_watcher.go
230
37.55
-41.76% contractcourt/chain_arbitrator.go
242
0.0
-49.9% chainreg/chainregistry.go
251
0.0
-94.36% subrpcserver_config.go
293
68.15
-10.52% htlcswitch/link.go
431
0.0
-58.32% lnd.go
434
43.35
-46.61% sweep/sweeper.go
473
20.7
-34.0% config.go
519
0.0
-82.91% rpcperms/interceptor.go
630
0.0
-67.31% config_builder.go
661
0.0
-72.48% lnwallet/rpcwallet/rpcwallet.go
1076
37.47
-40.6% peer/brontide.go
2187
0.28
-63.4% server.go
4092
6.58
-64.45% rpcserver.go
Jobs
ID Job ID Ran Files Coverage
1 unit - 12372503094.1 17 Dec 2024 12:18PM UTC 852
57.53
GitHub Action Run
Source Files on build 12372503094
  • Tree
  • List 852
  • Changed 246
  • Source Changed 0
  • Coverage Changed 32
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #9315
  • PR Base - master (#12371948523)
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