Add comments and doco to clairfy test networks.

There was not much documentation about the difference between testnet and
testnet3, so make it clear that testnet is used for regression tests and
testnet3 is the public test network (version 3).
This commit is contained in:
Dave Collins 2013-07-25 19:04:58 -05:00
parent 4e6b649be6
commit ea3107d962
2 changed files with 9 additions and 4 deletions

4
doc.go
View File

@ -84,8 +84,8 @@ message and which bitcoin network the message applies to. This package provides
the following constants:
btcwire.MainNet
btcwire.TestNet
btcwire.TestNet3
btcwire.TestNet (Regression test network)
btcwire.TestNet3 (Test network version 3)
Determining Message Type

View File

@ -83,7 +83,12 @@ type BitcoinNet uint32
// this package does not provide that functionality since it's generally a
// better idea to simply disconnect clients that are misbehaving over TCP.
const (
MainNet BitcoinNet = 0xd9b4bef9
TestNet BitcoinNet = 0xdab5bffa
// Main bitcoin network.
MainNet BitcoinNet = 0xd9b4bef9
// Regression test network.
TestNet BitcoinNet = 0xdab5bffa
// Test network version 3.
TestNet3 BitcoinNet = 0x0709110b
)