From 7048480a4a5406ff52ff542309f887c58a4ddf48 Mon Sep 17 00:00:00 2001 From: bryanvu Date: Mon, 30 Jan 2017 21:45:02 -0800 Subject: [PATCH] minor: fixed arbiter spelling and comment/error messages in funding rpc messages --- breacharbiter.go | 2 +- lnwire/single_funding_complete.go | 4 ++-- lnwire/single_funding_request_test.go | 2 +- lnwire/single_funding_response.go | 2 +- lnwire/single_funding_response_test.go | 2 +- lnwire/single_funding_signcomplete.go | 8 ++++---- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/breacharbiter.go b/breacharbiter.go index 3906d27a..79606656 100644 --- a/breacharbiter.go +++ b/breacharbiter.go @@ -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 diff --git a/lnwire/single_funding_complete.go b/lnwire/single_funding_complete.go index 5e1eb5d6..00c7533b 100644 --- a/lnwire/single_funding_complete.go +++ b/lnwire/single_funding_complete.go @@ -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 { @@ -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. diff --git a/lnwire/single_funding_request_test.go b/lnwire/single_funding_request_test.go index c6761366..c9c85a68 100644 --- a/lnwire/single_funding_request_test.go +++ b/lnwire/single_funding_request_test.go @@ -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. diff --git a/lnwire/single_funding_response.go b/lnwire/single_funding_response.go index 2b663d29..cb18969d 100644 --- a/lnwire/single_funding_response.go +++ b/lnwire/single_funding_response.go @@ -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 { diff --git a/lnwire/single_funding_response_test.go b/lnwire/single_funding_response_test.go index ee75143e..64737286 100644 --- a/lnwire/single_funding_response_test.go +++ b/lnwire/single_funding_response_test.go @@ -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. diff --git a/lnwire/single_funding_signcomplete.go b/lnwire/single_funding_signcomplete.go index 680a3710..48d8c0d7 100644 --- a/lnwire/single_funding_signcomplete.go +++ b/lnwire/single_funding_signcomplete.go @@ -75,8 +75,8 @@ 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. @@ -84,8 +84,8 @@ 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 {