Skip to content

Commit

Permalink
minor: fixed arbiter spelling and comment/error messages in funding r…
Browse files Browse the repository at this point in the history
…pc messages
  • Loading branch information
bryanvu authored and Roasbeef committed Feb 24, 2017
1 parent d911107 commit 7048480
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion breacharbiter.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ func (b *breachArbiter) Start() error {
return nil
}

brarLog.Tracef("Starting breach aribter")
brarLog.Tracef("Starting breach arbiter")

// First we need to query that database state for all currently active
// channels, each of these channels will need a goroutine assigned to
Expand Down
4 changes: 2 additions & 2 deletions lnwire/single_funding_complete.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ func (s *SingleFundingComplete) Encode(w io.Writer, pver uint32) error {
}

// Command returns the uint32 code which uniquely identifies this message as a
// SingleFundingRequest on the wire.
// SingleFundingComplete on the wire.
//
// This is part of the lnwire.Message interface.
func (s *SingleFundingComplete) Command() uint32 {
Expand All @@ -115,7 +115,7 @@ func (s *SingleFundingComplete) Command() uint32 {

// MaxPayloadLength returns the maximum allowed payload length for a
// SingleFundingComplete. This is calculated by summing the max length of all
// the fields within a SingleFundingResponse. Therefore, the final breakdown
// the fields within a SingleFundingComplete. Therefore, the final breakdown
// is: 8 + 36 + 33 + 73 + 4 = 154
//
// This is part of the lnwire.Message interface.
Expand Down
2 changes: 1 addition & 1 deletion lnwire/single_funding_request_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ func TestSingleFundingRequestWire(t *testing.T) {
// Next encode the SFR message into an empty bytes buffer.
var b bytes.Buffer
if err := sfr.Encode(&b, 0); err != nil {
t.Fatalf("unable to encode SingleFundingSignComplete: %v", err)
t.Fatalf("unable to encode SingleFundingRequest: %v", err)
}

// Deserialize the encoded SFR message into a new empty struct.
Expand Down
2 changes: 1 addition & 1 deletion lnwire/single_funding_response.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ func (c *SingleFundingResponse) Encode(w io.Writer, pver uint32) error {
}

// Command returns the uint32 code which uniquely identifies this message as a
// SingleFundingRequest on the wire.
// SingleFundingResponse on the wire.
//
// This is part of the lnwire.Message interface.
func (c *SingleFundingResponse) Command() uint32 {
Expand Down
2 changes: 1 addition & 1 deletion lnwire/single_funding_response_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ func TestSingleFundingResponseWire(t *testing.T) {
// Next encode the SFR message into an empty bytes buffer.
var b bytes.Buffer
if err := sfr.Encode(&b, 0); err != nil {
t.Fatalf("unable to encode SingleFundingSignComplete: %v", err)
t.Fatalf("unable to encode SingleFundingResponse: %v", err)
}

// Deserialize the encoded SFR message into a new empty struct.
Expand Down
8 changes: 4 additions & 4 deletions lnwire/single_funding_signcomplete.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,17 +75,17 @@ func (c *SingleFundingSignComplete) Command() uint32 {
}

// MaxPayloadLength returns the maximum allowed payload length for a
// SingleFundingComplete. This is calculated by summing the max length of all
// the fields within a SingleFundingResponse. The final breakdown
// SingleFundingSignComplete. This is calculated by summing the max length of all
// the fields within a SingleFundingSignComplete. The final breakdown
// is: 8 + 73 = 81
//
// This is part of the lnwire.Message interface.
func (c *SingleFundingSignComplete) MaxPayloadLength(uint32) uint32 {
return 81
}

// Validate examines each populated field within the SingleFundingComplete for
// field sanity.
// Validate examines each populated field within the SingleFundingSignComplete
// for field sanity.
//
// This is part of the lnwire.Message interface.
func (s *SingleFundingSignComplete) Validate() error {
Expand Down

0 comments on commit 7048480

Please sign in to comment.