mirror of
https://github.com/btcsuite/btcd.git
synced 2025-01-19 14:45:34 +01:00
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:
parent
4e6b649be6
commit
ea3107d962
4
doc.go
4
doc.go
@ -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
|
||||
|
||||
|
@ -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
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user