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

lightningnetwork / lnd / 12343072627
59%
master: 67%

Build:
Build:
LAST BUILD BRANCH: fix-fee-estimation
DEFAULT BRANCH: master
Ran 15 Dec 2024 11:31PM UTC
Jobs 1
Files 852
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

15 Dec 2024 11:09PM UTC coverage: 57.504% (-1.1%) from 58.636%
12343072627

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%)

19246 existing lines in 249 files now uncovered.

102342 of 177975 relevant lines covered (57.5%)

24772.24 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.89% contractcourt/htlc_timeout_resolver.go
38
71.91
-8.88% contractcourt/htlc_incoming_contest_resolver.go
40
74.19
-18.11% 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.51% 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
81.48
-0.67% funding/batch.go
2
96.0
-2.0% watchtower/wtclient/candidate_iterator.go
2
93.55
0.37% htlcswitch/mailbox.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.11
-0.3% htlcswitch/circuit_map.go
2
73.98
-1.63% htlcswitch/circuit.go
2
84.62
-1.54% graph/notifications.go
2
96.38
0.26% watchtower/wtdb/range_index.go
2
80.15
-1.47% channeldb/meta.go
2
84.32
-0.13% channeldb/invoices.go
2
77.78
-1.71% channeldb/witness_cache.go
2
86.26
-0.95% invoices/invoice_expiry_watcher.go
2
81.48
-3.7% chanacceptor/chainedacceptor.go
2
66.67
-1.48% brontide/listener.go
2
78.92
-1.08% watchtower/lookout/justice_descriptor.go
2
50.0
-50.0% batch/interface.go
3
92.34
-1.15% graph/db/graph_cache.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
84.21
-15.79% graph/errors.go
3
74.6
-4.76% channeldb/peers.go
3
87.18
-7.69% lnwire/short_channel_id.go
3
63.46
-5.77% lnwire/update_fulfill_htlc.go
3
70.83
-12.5% lnwire/stfu.go
3
73.91
-4.35% lnwire/update_add_htlc.go
3
63.33
-10.0% lnwire/update_fail_malformed_htlc.go
3
0.0
-100.0% chainreg/chainparams.go
3
83.78
-8.11% lnwallet/chainfee/rates.go
3
31.25
-9.38% intercepted_forward.go
3
76.36
-5.45% lnwire/revoke_and_ack.go
3
86.15
-4.62% watchtower/wtdb/client_session.go
3
57.14
-21.43% lntypes/txsize.go
3
79.63
-1.85% channeldb/reports.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
82.84
-0.68% channeldb/migration30/migration.go
3
84.75
-5.08% lnwire/commit_sig.go
4
21.43
-28.57% build/deployment.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
72.34
-8.51% graph/db/models/node.go
4
90.84
-0.96% internal/musig2v040/sign.go
4
34.69
-8.16% htlcswitch/hodl/flags.go
4
77.27
-1.65% watchtower/wtserver/server.go
4
42.86
-57.14% keychain/derivation.go
4
29.03
-12.9% lncfg/cluster.go
4
61.9
-19.05% netann/node_signer.go
4
0.0
-40.0% lncfg/caches.go
4
0.0
-40.0% lncfg/chain.go
4
95.56
-2.96% sweep/fee_function.go
4
51.28
-5.13% invoices/resolution_result.go
4
88.01
-1.26% invoices/update.go
4
88.15
-1.48% aezeed/cipherseed.go
5
83.87
-4.03% lnwallet/chanfunding/canned_assembler.go
5
75.15
-1.02% channeldb/forwarding_package.go
5
0.0
-100.0% lnutils/errors.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
72.96
-0.61% watchtower/wtclient/client.go
5
79.7
-1.49% macaroons/store.go
5
76.19
-7.94% chainntnfs/best_block_view.go
5
75.97
-1.14% channeldb/payment_control.go
5
85.45
-9.09% htlcswitch/failure.go
5
68.75
-31.25% lnwire/pong.go
5
83.05
-8.47% routing/payment_session_source.go
6
82.71
-1.33% chanbackup/single.go
6
50.0
-21.43% lncfg/wtclient.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
0.0
-16.22% lncfg/pprof.go
6
78.99
-4.35% input/size.go
6
68.0
-12.0% record/amp.go
6
0.0
-35.29% lncfg/routing.go
6
87.59
-2.26% channeldb/mp_payment.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
92.09
-5.04% watchtower/wtpolicy/policy.go
7
29.17
-29.17% lncfg/sweeper.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
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
79.49
-20.51% graph/stats.go
8
89.52
-3.23% lnwallet/chanfunding/coin_select.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
41.67
-41.67% macaroons/auth.go
10
0.0
-58.82% lnwallet/rpcwallet/healthcheck.go
10
66.56
-3.28% chainntnfs/interface.go
10
68.47
-4.93% sweep/txgenerator.go
10
89.37
-2.42% discovery/sync_manager.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
73.15
-1.64% lnwallet/chancloser/chancloser.go
12
44.83
-41.38% graph/db/options.go
13
64.86
-35.14% contractcourt/htlc_lease_resolver.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
40.0
-13.0% lnwallet/errors.go
13
87.24
-6.63% routing/control_tower.go
13
53.17
-10.32% input/signdescriptor.go
13
72.16
-0.71% watchtower/wtdb/client_db.go
14
86.98
-10.12% sweep/tx_input_set.go
14
66.98
-18.25% contractcourt/commit_sweep_resolver.go
15
54.93
-33.4% contractcourt/breach_resolver.go
15
79.38
-4.69% internal/musig2v040/context.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
16
64.62
-8.21% watchtower/lookout/lookout.go
16
74.26
-15.84% invoices/modification_interceptor.go
16
0.0
-44.44% lncfg/healthcheck.go
16
36.11
-44.44% build/config.go
17
0.0
-54.84% htlcswitch/linkfailure.go
17
56.2
-4.14% tls_manager.go
17
63.28
-17.53% contractcourt/htlc_outgoing_contest_resolver.go
18
54.55
-6.29% routing/probability_bimodal.go
19
79.63
-3.87% contractcourt/taproot_briefcase.go
19
32.08
-35.85% keychain/signer.go
19
72.87
-5.99% channeldb/migration30/revocation_log.go
19
0.0
-61.29% htlcswitch/hodl/config_dev.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
61.21
-3.74% watchtower/wtclient/manager.go
21
74.22
-9.33% lncfg/address.go
22
74.25
-8.21% invoices/invoices.go
22
86.73
-1.86% chainntnfs/txnotifier.go
23
87.88
-3.2% routing/payment_lifecycle.go
24
71.91
-8.88% 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
0.0
-81.58% graph/graphsession/graph_session.go
31
12.5
-64.58% watchtower/conf.go
32
72.11
-10.88% chanacceptor/rpcacceptor.go
32
0.0
-94.12% netann/node_announcement.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
73.08
-7.12% lnwallet/reservation.go
37
30.49
-45.12% channelnotifier/channelnotifier.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
75.71
-1.62% graph/db/graph.go
51
84.23
-2.77% input/script_utils.go
52
0.0
-89.66% htlcswitch/sequencer.go
54
80.34
-4.46% invoices/invoiceregistry.go
55
58.04
-12.28% walletunlocker/service.go
58
40.71
-41.43% build/sub_logger.go
58
73.42
-8.33% chainntnfs/btcdnotify/btcd.go
59
6.58
-77.63% peer/musig_chan_closer.go
62
72.05
-9.02% chainntnfs/bitcoindnotify/bitcoind.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
117
73.41
-4.7% channeldb/channel.go
128
71.65
-17.89% 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
157
74.19
-18.11% sweep/fee_bumper.go
162
69.35
-12.08% contractcourt/breach_arbitrator.go
165
0.0
-73.33% chanrestore.go
166
82.08
-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
207
68.26
-5.78% funding/manager.go
210
71.26
-9.39% discovery/gossiper.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
221
55.89
-26.28% contractcourt/chain_watcher.go
224
71.67
-11.75% htlcswitch/switch.go
230
37.55
-41.76% contractcourt/chain_arbitrator.go
251
0.0
-94.36% subrpcserver_config.go
278
0.0
-57.32% chainreg/chainregistry.go
298
68.15
-10.7% htlcswitch/link.go
431
0.0
-58.32% lnd.go
434
43.35
-46.61% sweep/sweeper.go
482
20.7
-34.65% config.go
517
0.0
-82.59% rpcperms/interceptor.go
630
0.0
-67.31% config_builder.go
661
0.0
-72.48% lnwallet/rpcwallet/rpcwallet.go
1078
37.47
-40.68% peer/brontide.go
2191
0.28
-63.51% server.go
4094
6.58
-64.48% rpcserver.go
Jobs
ID Job ID Ran Files Coverage
1 unit - 12343072627.1 15 Dec 2024 11:31PM UTC 852
57.5
GitHub Action Run
Source Files on build 12343072627
  • Tree
  • List 852
  • Changed 259
  • Source Changed 0
  • Coverage Changed 32
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #9315
  • PR Base - master (#12313602533)
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