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:
parent
dfdd223223
commit
c4135db728
1 changed files with 0 additions and 11 deletions
11
protocol.go
11
protocol.go
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue