recieve -> receive

This commit is contained in:
David Hill 2014-03-02 13:28:29 -05:00
parent d2bfd3d98b
commit cbb5c5b424

View file

@ -929,7 +929,7 @@ func (p *peer) handlePingMsg(msg *btcwire.MsgPing) {
} }
} }
// handlePongMsg is invoked when a peer recieved a pong bitcoin message. // handlePongMsg is invoked when a peer received a pong bitcoin message.
// recent clients (protocol version > BIP0031Version), and if we had send a ping // recent clients (protocol version > BIP0031Version), and if we had send a ping
// previosuly we update our ping time statistics. If the client is too old or // previosuly we update our ping time statistics. If the client is too old or
// we had not send a ping we ignore it. // we had not send a ping we ignore it.
@ -1352,13 +1352,13 @@ out:
case msg := <-p.sendQueue: case msg := <-p.sendQueue:
// If the message is one we should get a reply for // If the message is one we should get a reply for
// then reset the timer, we only want to send pings // then reset the timer, we only want to send pings
// when otherwise we would not recieve a reply from // when otherwise we would not receive a reply from
// the peer. We specifically do not count block or inv // the peer. We specifically do not count block or inv
// messages here since they are not sure of a reply if // messages here since they are not sure of a reply if
// the inv is of no interest explicitly solicited invs // the inv is of no interest explicitly solicited invs
// should elicit a reply but we don't track them // should elicit a reply but we don't track them
// specially. // specially.
peerLog.Tracef("%s: recieved from queuehandler", p) peerLog.Tracef("%s: received from queuehandler", p)
reset := true reset := true
switch m := msg.msg.(type) { switch m := msg.msg.(type) {
case *btcwire.MsgVersion: case *btcwire.MsgVersion: