Skip to content

Commit

Permalink
peer: Rename variable for consistency.
Browse files Browse the repository at this point in the history
  • Loading branch information
jongillham committed Dec 15, 2015
1 parent 5428448 commit 4d40a21
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions peer/peer.go
Original file line number Diff line number Diff line change
Expand Up @@ -742,7 +742,7 @@ func (p *Peer) pushVersionMsg() error {
}
}

theirNa := p.na
theirNA := p.na

// If we are behind a proxy and the connection comes from the proxy then
// we return an unroutable address as their address. This is to prevent
Expand All @@ -751,7 +751,7 @@ func (p *Peer) pushVersionMsg() error {
proxyaddress, _, err := net.SplitHostPort(p.cfg.Proxy)
// invalid proxy means poorly configured, be on the safe side.
if err != nil || p.na.IP.String() == proxyaddress {
theirNa = &wire.NetAddress{
theirNA = &wire.NetAddress{
Timestamp: time.Now(),
IP: net.IP([]byte{0, 0, 0, 0}),
}
Expand All @@ -776,7 +776,7 @@ func (p *Peer) pushVersionMsg() error {
sentNonces.Add(nonce)

// Version message.
msg := wire.NewMsgVersion(ourNA, theirNa, nonce, int32(blockNum))
msg := wire.NewMsgVersion(ourNA, theirNA, nonce, int32(blockNum))
msg.AddUserAgent(p.cfg.UserAgentName, p.cfg.UserAgentVersion)

// XXX: bitcoind appears to always enable the full node services flag
Expand Down

0 comments on commit 4d40a21

Please sign in to comment.