• 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

0.0
/lnwire/dyn_reject.go
1
package lnwire
2

3
import (
4
        "bytes"
5
        "io"
6
)
7

8
// DynReject is a message that is sent during a dynamic commitments negotiation
9
// process. It is sent by both parties to propose new channel parameters.
10
type DynReject struct {
11
        // ChanID identifies the channel whose parameters we are trying to
12
        // re-negotiate.
13
        ChanID ChannelID
14

15
        // UpdateRejections is a bit vector that specifies which of the
16
        // DynPropose parameters we wish to call out as being unacceptable.
17
        UpdateRejections RawFeatureVector
18

19
        // ExtraData is the set of data that was appended to this message to
20
        // fill out the full maximum transport message size. These fields can
21
        // be used to specify optional data such as custom TLV fields.
22
        //
23
        // NOTE: Since the fields in this structure are part of the TLV stream,
24
        // ExtraData will contain all TLV records _except_ the ones that are
25
        // present in earlier parts of this structure.
26
        ExtraData ExtraOpaqueData
27
}
28

29
// A compile time check to ensure DynReject implements the lnwire.Message
30
// interface.
31
var _ Message = (*DynReject)(nil)
32

33
// Encode serializes the target DynReject into the passed io.Writer.
34
// Serialization will observe the rules defined by the passed protocol version.
35
//
36
// This is a part of the lnwire.Message interface.
37
func (dr *DynReject) Encode(w *bytes.Buffer, _ uint32) error {
×
38
        if err := WriteChannelID(w, dr.ChanID); err != nil {
×
39
                return err
×
40
        }
×
41

42
        if err := WriteRawFeatureVector(w, &dr.UpdateRejections); err != nil {
×
43
                return err
×
44
        }
×
45

46
        return WriteBytes(w, dr.ExtraData)
×
47
}
48

49
// Decode deserializes the serialized DynReject stored in the passed io.Reader
50
// into the target DynReject using the deserialization rules defined by the
51
// passed protocol version.
52
//
53
// This is a part of the lnwire.Message interface.
54
func (dr *DynReject) Decode(r io.Reader, _ uint32) error {
×
55
        var extra ExtraOpaqueData
×
56

×
57
        if err := ReadElements(
×
58
                r, &dr.ChanID, &dr.UpdateRejections, &extra,
×
59
        ); err != nil {
×
60
                return err
×
61
        }
×
62

63
        if len(extra) != 0 {
×
64
                dr.ExtraData = extra
×
65
        }
×
66

67
        return nil
×
68
}
69

70
// MsgType returns the MessageType code which uniquely identifies this message
71
// as a DynReject on the wire.
72
//
73
// This is part of the lnwire.Message interface.
74
func (dr *DynReject) MsgType() MessageType {
×
75
        return MsgDynReject
×
76
}
×
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