diff --git a/btcd.go b/btcd.go index 1947418f..30e12250 100644 --- a/btcd.go +++ b/btcd.go @@ -17,13 +17,6 @@ import ( "runtime" ) -// These constants are used by the dns seed code to pick a random last seen -// time. -const ( - secondsIn3Days int32 = 24 * 60 * 60 * 3 - secondsIn4Days int32 = 24 * 60 * 60 * 4 -) - var ( log = seelog.Disabled cfg *config diff --git a/server.go b/server.go index c5de9122..4d7fad66 100644 --- a/server.go +++ b/server.go @@ -16,15 +16,25 @@ import ( "time" ) -// supportedServices describes which services are supported by the server. -const supportedServices = btcwire.SFNodeNetwork +// These constants are used by the DNS seed code to pick a random last seen +// time. +const ( + secondsIn3Days int32 = 24 * 60 * 60 * 3 + secondsIn4Days int32 = 24 * 60 * 60 * 4 +) -// connectionRetryInterval is the amount of time to wait in between retries -// when connecting to persistent peers. -const connectionRetryInterval = time.Second * 10 +const ( + // supportedServices describes which services are supported by the + // server. + supportedServices = btcwire.SFNodeNetwork -// defaultMaxOutbound is the default number of max outbound peers. -const defaultMaxOutbound = 8 + // connectionRetryInterval is the amount of time to wait in between + // retries when connecting to persistent peers. + connectionRetryInterval = time.Second * 10 + + // defaultMaxOutbound is the default number of max outbound peers. + defaultMaxOutbound = 8 +) // broadcastMsg provides the ability to house a bitcoin message to be broadcast // to all connected peers except specified excluded peers.