Move userAgent to peer where it's used.
This commit is contained in:
parent
48d3c5f585
commit
1fecbec3df
2 changed files with 4 additions and 2 deletions
2
btcd.go
2
btcd.go
|
@ -19,8 +19,6 @@ import (
|
||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
var userAgent = fmt.Sprintf("/btcd:%d.%d.%d/", appMajor, appMinor, appPatch)
|
|
||||||
|
|
||||||
// used by the dns seed code to pick a random last seen time
|
// used by the dns seed code to pick a random last seen time
|
||||||
const (
|
const (
|
||||||
secondsIn3Days int32 = 24 * 60 * 60 * 3
|
secondsIn3Days int32 = 24 * 60 * 60 * 3
|
||||||
|
|
4
peer.go
4
peer.go
|
@ -20,6 +20,10 @@ import (
|
||||||
|
|
||||||
const outputBufferSize = 50
|
const outputBufferSize = 50
|
||||||
|
|
||||||
|
// userAgent is the user agent string used to identify ourselves to other
|
||||||
|
// bitcoin peers.
|
||||||
|
var userAgent = fmt.Sprintf("/btcd:%d.%d.%d/", appMajor, appMinor, appPatch)
|
||||||
|
|
||||||
// zeroHash is the zero value hash (all zeros). It is defined as a convenience.
|
// zeroHash is the zero value hash (all zeros). It is defined as a convenience.
|
||||||
var zeroHash btcwire.ShaHash
|
var zeroHash btcwire.ShaHash
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue