Move default network ports to btcnet package.

The default network ports are not really part of the wire protocol rather
they are part of a network parameters.  Thus, this commit moves them to
the btcnet package.
This commit is contained in:
Dave Collins 2014-05-29 11:59:49 -05:00
parent dfdd223223
commit c4135db728

View file

@ -11,17 +11,6 @@ import (
)
const (
// MainPort is the port used by default on the main network.
MainPort = "8333"
// TestNetPort is the port used by default on the test network (version
// 3).
TestNetPort = "18333"
// RegressionTestPort is the port used by default on the regression test
// network.
RegressionTestPort = "18444"
// ProtocolVersion is the latest protocol version this package supports.
ProtocolVersion uint32 = 70002