Update btcwire
This commit is contained in:
parent
454f1b1f2d
commit
146bba363c
3
peer.go
3
peer.go
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue