From ea3107d962098c6d92c139b5c4e9e55e3eee9be7 Mon Sep 17 00:00:00 2001 From: Dave Collins Date: Thu, 25 Jul 2013 19:04:58 -0500 Subject: [PATCH] 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). --- doc.go | 4 ++-- protocol.go | 9 +++++++-- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/doc.go b/doc.go index e33528a8..0a6ecd1b 100644 --- a/doc.go +++ b/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 diff --git a/protocol.go b/protocol.go index 60935110..b005d371 100644 --- a/protocol.go +++ b/protocol.go @@ -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 )