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

lightningnetwork / lnd / 11216766535

07 Oct 2024 01:37PM UTC coverage: 57.817% (-1.0%) from 58.817%
11216766535

Pull #9148

github

ProofOfKeags
lnwire: remove kickoff feerate from propose/commit
Pull Request #9148: DynComms [2/n]: lnwire: add authenticated wire messages for Dyn*

571 of 879 new or added lines in 16 files covered. (64.96%)

23253 existing lines in 251 files now uncovered.

99022 of 171268 relevant lines covered (57.82%)

38420.67 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/cmd/lnd/main.go
1
package main
2

3
import (
4
        "fmt"
5
        "os"
6

7
        "github.com/jessevdk/go-flags"
8
        "github.com/lightningnetwork/lnd"
9
        "github.com/lightningnetwork/lnd/signal"
10
)
11

UNCOV
12
func main() {
×
UNCOV
13
        // Hook interceptor for os signals.
×
UNCOV
14
        shutdownInterceptor, err := signal.Intercept()
×
UNCOV
15
        if err != nil {
×
16
                _, _ = fmt.Fprintln(os.Stderr, err)
×
17
                os.Exit(1)
×
18
        }
×
19

20
        // Load the configuration, and parse any command line options. This
21
        // function will also set up logging properly.
UNCOV
22
        loadedConfig, err := lnd.LoadConfig(shutdownInterceptor)
×
UNCOV
23
        if err != nil {
×
24
                if e, ok := err.(*flags.Error); !ok || e.Type != flags.ErrHelp {
×
25
                        // Print error if not due to help request.
×
26
                        err = fmt.Errorf("failed to load config: %w", err)
×
27
                        _, _ = fmt.Fprintln(os.Stderr, err)
×
28
                        os.Exit(1)
×
29
                }
×
30

31
                // Help was requested, exit normally.
32
                os.Exit(0)
×
33
        }
UNCOV
34
        implCfg := loadedConfig.ImplementationConfig(shutdownInterceptor)
×
UNCOV
35

×
UNCOV
36
        // Call the "real" main in a nested manner so the defers will properly
×
UNCOV
37
        // be executed in the case of a graceful shutdown.
×
UNCOV
38
        if err = lnd.Main(
×
UNCOV
39
                loadedConfig, lnd.ListenerCfg{}, implCfg, shutdownInterceptor,
×
UNCOV
40
        ); err != nil {
×
41
                _, _ = fmt.Fprintln(os.Stderr, err)
×
42
                os.Exit(1)
×
43
        }
×
44
}
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