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

lightningnetwork / lnd / 12058234999

27 Nov 2024 09:06PM UTC coverage: 57.847% (-1.1%) from 58.921%
12058234999

Pull #9148

github

ProofOfKeags
lnwire: convert DynPropose and DynCommit to use typed tlv records
Pull Request #9148: DynComms [2/n]: lnwire: add authenticated wire messages for Dyn*

142 of 177 new or added lines in 4 files covered. (80.23%)

19365 existing lines in 251 files now uncovered.

100876 of 174383 relevant lines covered (57.85%)

25338.28 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