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

lightningnetwork / lnd / 13035292482

29 Jan 2025 03:59PM UTC coverage: 49.3% (-9.5%) from 58.777%
13035292482

Pull #9456

github

mohamedawnallah
docs: update release-notes-0.19.0.md

In this commit, we warn users about the removal
of RPCs `SendToRoute`, `SendToRouteSync`, `SendPayment`,
and `SendPaymentSync` in the next release 0.20.
Pull Request #9456: lnrpc+docs: deprecate warning `SendToRoute`, `SendToRouteSync`, `SendPayment`, and `SendPaymentSync` in Release 0.19

100634 of 204126 relevant lines covered (49.3%)

1.54 hits per line

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

26.67
/feature/required.go
1
package feature
2

3
import (
4
        "fmt"
5

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

9
// ErrUnknownRequired signals that a feature vector requires certain features
10
// that our node is unaware of or does not implement.
11
type ErrUnknownRequired struct {
12
        unknown []lnwire.FeatureBit
13
}
14

15
// NewErrUnknownRequired initializes an ErrUnknownRequired with the unknown
16
// feature bits.
17
func NewErrUnknownRequired(unknown []lnwire.FeatureBit) ErrUnknownRequired {
×
18
        return ErrUnknownRequired{
×
19
                unknown: unknown,
×
20
        }
×
21
}
×
22

23
// Error returns a human-readable description of the error.
24
func (e ErrUnknownRequired) Error() string {
×
25
        return fmt.Sprintf("feature vector contains unknown required "+
×
26
                "features: %v", e.unknown)
×
27
}
×
28

29
// ValidateRequired returns an error if the feature vector contains a non-zero
30
// number of unknown, required feature bits.
31
func ValidateRequired(fv *lnwire.FeatureVector) error {
3✔
32
        unknown := fv.UnknownRequiredFeatures()
3✔
33
        if len(unknown) > 0 {
3✔
34
                return NewErrUnknownRequired(unknown)
×
35
        }
×
36
        return nil
3✔
37
}
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