Update comments to fix typos and use proper form.

This commit is contained in:
Dave Collins 2013-07-27 16:18:13 -05:00
parent bfbc08beed
commit d6752d8f99
4 changed files with 6 additions and 6 deletions

View file

@ -114,7 +114,7 @@ func (msg *MsgHeaders) MaxPayloadLength(pver uint32) uint32 {
return maxVarIntPayload + (maxBlockHeaderPayload * MaxBlockHeadersPerMsg) return maxVarIntPayload + (maxBlockHeaderPayload * MaxBlockHeadersPerMsg)
} }
// NewMsgGetHeaders returns a new bitcoin headers message that conforms to the // NewMsgHeaders returns a new bitcoin headers message that conforms to the
// Message interface. See MsgHeaders for details. // Message interface. See MsgHeaders for details.
func NewMsgHeaders() *MsgHeaders { func NewMsgHeaders() *MsgHeaders {
return &MsgHeaders{} return &MsgHeaders{}

View file

@ -53,7 +53,7 @@ func (msg *MsgMemPool) MaxPayloadLength(pver uint32) uint32 {
return 0 return 0
} }
// NewMsgPong returns a new bitcoin pong message that conforms to the Message // NewMsgMemPool returns a new bitcoin pong message that conforms to the Message
// interface. See MsgPong for details. // interface. See MsgPong for details.
func NewMsgMemPool() *MsgMemPool { func NewMsgMemPool() *MsgMemPool {
return &MsgMemPool{} return &MsgMemPool{}

View file

@ -13,7 +13,7 @@ import (
// of a transaction input can be. // of a transaction input can be.
const MaxTxInSequenceNum uint32 = 0xffffffff const MaxTxInSequenceNum uint32 = 0xffffffff
// Outpoint defines a bitcoin data type that is used to track previous // OutPoint defines a bitcoin data type that is used to track previous
// transaction outputs. // transaction outputs.
type OutPoint struct { type OutPoint struct {
Hash ShaHash Hash ShaHash

View file

@ -83,12 +83,12 @@ type BitcoinNet uint32
// this package does not provide that functionality since it's generally a // this package does not provide that functionality since it's generally a
// better idea to simply disconnect clients that are misbehaving over TCP. // better idea to simply disconnect clients that are misbehaving over TCP.
const ( const (
// Main bitcoin network. // MainNet represents the main bitcoin network.
MainNet BitcoinNet = 0xd9b4bef9 MainNet BitcoinNet = 0xd9b4bef9
// Regression test network. // TestNet represents the regression test network.
TestNet BitcoinNet = 0xdab5bffa TestNet BitcoinNet = 0xdab5bffa
// Test network version 3. // TestNet3 represents the test network (version 3).
TestNet3 BitcoinNet = 0x0709110b TestNet3 BitcoinNet = 0x0709110b
) )