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

lightningnetwork / lnd / 14513053602

17 Apr 2025 09:56AM UTC coverage: 56.754% (-12.3%) from 69.035%
14513053602

Pull #9727

github

web-flow
Merge 5fb0f4317 into 24fdae7df
Pull Request #9727: Aux bandwidth manager: also pass HTLC blob to `ShouldHandleTraffic`

3 of 8 new or added lines in 2 files covered. (37.5%)

24357 existing lines in 290 files now uncovered.

107518 of 189445 relevant lines covered (56.75%)

22634.92 hits per line

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

0.0
/lnrpc/signrpc/signer_utils.go
1
package signrpc
2

3
import (
4
        "fmt"
5

6
        "github.com/lightningnetwork/lnd/input"
7
)
8

9
// UnmarshalMuSig2Version parses the RPC MuSig2 version into the native
10
// counterpart.
11
func UnmarshalMuSig2Version(rpcVersion MuSig2Version) (input.MuSig2Version,
UNCOV
12
        error) {
×
UNCOV
13

×
UNCOV
14
        switch rpcVersion {
×
UNCOV
15
        case MuSig2Version_MUSIG2_VERSION_V040:
×
UNCOV
16
                return input.MuSig2Version040, nil
×
17

UNCOV
18
        case MuSig2Version_MUSIG2_VERSION_V100RC2:
×
UNCOV
19
                return input.MuSig2Version100RC2, nil
×
20

UNCOV
21
        default:
×
UNCOV
22
                return 0, fmt.Errorf("unknown MuSig2 version <%v>, make sure "+
×
UNCOV
23
                        "your client software is up to date, the version "+
×
UNCOV
24
                        "field is mandatory for this release of lnd",
×
UNCOV
25
                        rpcVersion.String())
×
26
        }
27
}
28

29
// MarshalMuSig2Version turns the native MuSig2 version into its RPC
30
// counterpart.
UNCOV
31
func MarshalMuSig2Version(version input.MuSig2Version) (MuSig2Version, error) {
×
UNCOV
32
        switch version {
×
UNCOV
33
        case input.MuSig2Version040:
×
UNCOV
34
                return MuSig2Version_MUSIG2_VERSION_V040, nil
×
35

UNCOV
36
        case input.MuSig2Version100RC2:
×
UNCOV
37
                return MuSig2Version_MUSIG2_VERSION_V100RC2, nil
×
38

39
        default:
×
40
                return 0, fmt.Errorf("unknown MuSig2 version <%d>", version)
×
41
        }
42
}
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