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: the following constants:
btcwire.MainNet btcwire.MainNet
btcwire.TestNet btcwire.TestNet (Regression test network)
btcwire.TestNet3 btcwire.TestNet3 (Test network version 3)
Determining Message Type Determining Message Type

View file

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