This commit is contained in:
anthdm 2018-01-27 08:37:07 +01:00
parent 98a6831d6a
commit d76b86febd
2 changed files with 33 additions and 13 deletions

View file

@ -98,6 +98,8 @@ func (m *Message) commandType() commandType {
return cmdVersion
case "verack":
return cmdVerack
case "getaddr":
return cmdGetAddr
case "addr":
return cmdAddr
case "getheaders":
@ -211,7 +213,7 @@ func newVersionPayload(p uint16, ua string, h uint32, r bool) *Version {
Services: 1,
Timestamp: 12345,
Port: p,
Nonce: 1911099534,
Nonce: 19110,
UserAgent: []byte(ua),
StartHeight: 0,
Relay: r,