Refactor peer.

This commit is contained in:
Andrey Petrov 2014-04-25 15:14:16 -07:00
parent 623c060eaa
commit d0e4fa43a6
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ func (p *Peer) Handshake() error {
}
func (p *Peer) WriteMessage(msg btcwire.Message) error {
return btcwire.WriteMessage(p.conn, btcwire.NewMsgGetAddr(), p.client.pver, p.client.btcnet)
return btcwire.WriteMessage(p.conn, msg, p.client.pver, p.client.btcnet)
}
func (p *Peer) ReadMessage() (btcwire.Message, []byte, error) {