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

lightningnetwork / lnd / 21485572389

29 Jan 2026 04:09PM UTC coverage: 65.247% (+0.2%) from 65.074%
21485572389

Pull #10089

github

web-flow
Merge 22d34d15e into 19b2ad797
Pull Request #10089: Onion message forwarding

1152 of 1448 new or added lines in 23 files covered. (79.56%)

4109 existing lines in 29 files now uncovered.

139515 of 213825 relevant lines covered (65.25%)

20529.09 hits per line

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

12.5
/lncfg/dev.go
1
//go:build !integration
2

3
package lncfg
4

5
import (
6
        "time"
7

8
        "github.com/lightningnetwork/lnd/fn/v2"
9
        "github.com/lightningnetwork/lnd/lnwallet/chanfunding"
10
)
11

12
// IsDevBuild returns a bool to indicate whether we are in a development
13
// environment.
14
//
15
// NOTE: always return false here.
16
func IsDevBuild() bool {
26✔
17
        return false
26✔
18
}
26✔
19

20
// DevConfig specifies development configs used for production. This struct
21
// should always remain empty.
22
type DevConfig struct{}
23

24
// ChannelReadyWait returns the config value, which is always 0 for production
25
// build.
26
func (d *DevConfig) ChannelReadyWait() time.Duration {
×
27
        return 0
×
UNCOV
28
}
×
29

30
// GetUnsafeDisconnect returns the config value, which is always true for
31
// production build.
32
//
33
// TODO(yy): this is a temporary solution to allow users to reconnect peers to
34
// trigger a reestablishiment for the active channels. Once a new dedicated RPC
35
// is added to realize that functionality, this function should return false to
36
// forbidden disconnecting peers while there are active channels.
37
func (d *DevConfig) GetUnsafeDisconnect() bool {
×
38
        return true
×
UNCOV
39
}
×
40

41
// GetReservationTimeout returns the config value for `ReservationTimeout`.
42
func (d *DevConfig) GetReservationTimeout() time.Duration {
×
43
        return chanfunding.DefaultReservationTimeout
×
UNCOV
44
}
×
45

46
// GetZombieSweeperInterval returns the config value for`ZombieSweeperInterval`.
47
func (d *DevConfig) GetZombieSweeperInterval() time.Duration {
×
48
        return DefaultZombieSweeperInterval
×
UNCOV
49
}
×
50

51
// GetMaxWaitNumBlocksFundingConf returns the config value for
52
// `MaxWaitNumBlocksFundingConf`.
53
func (d *DevConfig) GetMaxWaitNumBlocksFundingConf() uint32 {
×
54
        return DefaultMaxWaitNumBlocksFundingConf
×
UNCOV
55
}
×
56

57
// GetUnsafeConnect returns the config value `UnsafeConnect`, which is always
58
// false for production build.
59
func (d *DevConfig) GetUnsafeConnect() bool {
×
60
        return false
×
UNCOV
61
}
×
62

63
// ChannelCloseConfs returns the config value for channel close confirmations
64
// override, which is always None for production build.
UNCOV
65
func (d *DevConfig) ChannelCloseConfs() fn.Option[uint32] {
×
UNCOV
66
        return fn.None[uint32]()
×
UNCOV
67
}
×
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

© 2026 Coveralls, Inc