Update btcwire

This commit is contained in:
Andrey Petrov 2014-05-20 15:37:36 -07:00
parent 454f1b1f2d
commit 146bba363c
1 changed files with 2 additions and 1 deletions

View File

@ -60,7 +60,8 @@ func (p *Peer) Handshake() error {
} }
p.nonce = nonce p.nonce = nonce
msgVersion, err := btcwire.NewMsgVersionFromConn(p.conn, p.nonce, p.client.userAgent, 0) msgVersion, err := btcwire.NewMsgVersionFromConn(p.conn, p.nonce, 0)
msgVersion.UserAgent = p.client.userAgent
msgVersion.DisableRelayTx = true msgVersion.DisableRelayTx = true
if err := p.WriteMessage(msgVersion); err != nil { if err := p.WriteMessage(msgVersion); err != nil {
return err return err