• 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
/chainreg/chainparams.go
1
package chainreg
2

3
import (
4
        bitcoinCfg "github.com/btcsuite/btcd/chaincfg"
5
        bitcoinWire "github.com/btcsuite/btcd/wire"
6
        "github.com/lightningnetwork/lnd/keychain"
7
)
8

9
// BitcoinNetParams couples the p2p parameters of a network with the
10
// corresponding RPC port of a daemon running on the particular network.
11
type BitcoinNetParams struct {
12
        *bitcoinCfg.Params
13
        RPCPort  string
14
        CoinType uint32
15
}
16

17
// BitcoinTestNetParams contains parameters specific to the 3rd version of the
18
// test network.
19
var BitcoinTestNetParams = BitcoinNetParams{
20
        Params:   &bitcoinCfg.TestNet3Params,
21
        RPCPort:  "18334",
22
        CoinType: keychain.CoinTypeTestnet,
23
}
24

25
// BitcoinMainNetParams contains parameters specific to the current Bitcoin
26
// mainnet.
27
var BitcoinMainNetParams = BitcoinNetParams{
28
        Params:   &bitcoinCfg.MainNetParams,
29
        RPCPort:  "8334",
30
        CoinType: keychain.CoinTypeBitcoin,
31
}
32

33
// BitcoinSimNetParams contains parameters specific to the simulation test
34
// network.
35
var BitcoinSimNetParams = BitcoinNetParams{
36
        Params:   &bitcoinCfg.SimNetParams,
37
        RPCPort:  "18556",
38
        CoinType: keychain.CoinTypeTestnet,
39
}
40

41
// BitcoinSigNetParams contains parameters specific to the signet test network.
42
var BitcoinSigNetParams = BitcoinNetParams{
43
        Params:   &bitcoinCfg.SigNetParams,
44
        RPCPort:  "38332",
45
        CoinType: keychain.CoinTypeTestnet,
46
}
47

48
// BitcoinRegTestNetParams contains parameters specific to a local bitcoin
49
// regtest network.
50
var BitcoinRegTestNetParams = BitcoinNetParams{
51
        Params:   &bitcoinCfg.RegressionNetParams,
52
        RPCPort:  "18334",
53
        CoinType: keychain.CoinTypeTestnet,
54
}
55

56
// IsTestnet tests if the givern params correspond to a testnet
57
// parameter configuration.
UNCOV
58
func IsTestnet(params *BitcoinNetParams) bool {
×
UNCOV
59
        return params.Params.Net == bitcoinWire.TestNet3
×
UNCOV
60
}
×
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