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

lightningnetwork / lnd / 12986279612

27 Jan 2025 09:51AM UTC coverage: 57.652% (-1.1%) from 58.788%
12986279612

Pull #9447

github

yyforyongyu
sweep: rename methods for clarity

We now rename "third party" to "unknown" as the inputs can be spent via
an older sweeping tx, a third party (anchor), or a remote party (pin).
In fee bumper we don't have the info to distinguish the above cases, and
leave them to be further handled by the sweeper as it has more context.
Pull Request #9447: sweep: start tracking input spending status in the fee bumper

83 of 87 new or added lines in 2 files covered. (95.4%)

19578 existing lines in 256 files now uncovered.

103448 of 179434 relevant lines covered (57.65%)

24884.58 hits per line

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

0.0
/build/handlers.go
1
package build
2

3
import (
4
        "os"
5

6
        "github.com/btcsuite/btclog/v2"
7
)
8

9
// NewDefaultLogHandlers returns the standard console logger and rotating log
10
// writer handlers that we generally want to use. It also applies the various
11
// config options to the loggers.
12
func NewDefaultLogHandlers(cfg *LogConfig,
UNCOV
13
        rotator *RotatingLogWriter) []btclog.Handler {
×
UNCOV
14

×
UNCOV
15
        var handlers []btclog.Handler
×
UNCOV
16

×
UNCOV
17
        consoleLogHandler := btclog.NewDefaultHandler(
×
UNCOV
18
                os.Stdout, cfg.Console.HandlerOptions()...,
×
UNCOV
19
        )
×
UNCOV
20
        logFileHandler := btclog.NewDefaultHandler(
×
UNCOV
21
                rotator, cfg.File.HandlerOptions()...,
×
UNCOV
22
        )
×
UNCOV
23

×
UNCOV
24
        maybeAddLogger := func(cmdOptionDisable bool, handler btclog.Handler) {
×
UNCOV
25
                if !cmdOptionDisable {
×
UNCOV
26
                        handlers = append(handlers, handler)
×
UNCOV
27
                }
×
28
        }
UNCOV
29
        switch LoggingType {
×
30
        case LogTypeStdOut:
×
31
                maybeAddLogger(cfg.Console.Disable, consoleLogHandler)
×
UNCOV
32
        case LogTypeDefault:
×
UNCOV
33
                maybeAddLogger(cfg.Console.Disable, consoleLogHandler)
×
UNCOV
34
                maybeAddLogger(cfg.File.Disable, logFileHandler)
×
35
        }
36

UNCOV
37
        return handlers
×
38
}
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