minor: fixed arbiter spelling and comment/error messages in funding rpc messages

This commit is contained in:
bryanvu 2017-01-30 21:45:02 -08:00 committed by Olaoluwa Osuntokun
parent d911107ec6
commit 7048480a4a
6 changed files with 10 additions and 10 deletions

View File

@ -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

View File

@ -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.

View File

@ -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.

View File

@ -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 {

View File

@ -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.

View File

@ -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 {