From 31ee545aa932a360079512ca174980af5687715c Mon Sep 17 00:00:00 2001
From: Dave Collins <davec@conformal.com>
Date: Wed, 28 May 2014 10:28:10 -0500
Subject: [PATCH] Add bitcoin network type for simulation testing.

---
 protocol.go      | 4 ++++
 protocol_test.go | 1 +
 2 files changed, 5 insertions(+)

diff --git a/protocol.go b/protocol.go
index d5de61cb..89f0fcd2 100644
--- a/protocol.go
+++ b/protocol.go
@@ -94,6 +94,9 @@ const (
 
 	// TestNet3 represents the test network (version 3).
 	TestNet3 BitcoinNet = 0x0709110b
+
+	// SimNet represents the simulation test network.
+	SimNet BitcoinNet = 0x12141c16
 )
 
 // bnStrings is a map of bitcoin networks back to their constant names for
@@ -102,6 +105,7 @@ var bnStrings = map[BitcoinNet]string{
 	MainNet:  "MainNet",
 	TestNet:  "TestNet",
 	TestNet3: "TestNet3",
+	SimNet:   "SimNet",
 }
 
 // String returns the BitcoinNet in human-readable form.
diff --git a/protocol_test.go b/protocol_test.go
index 3eb79939..61a59aaa 100644
--- a/protocol_test.go
+++ b/protocol_test.go
@@ -40,6 +40,7 @@ func TestBitcoinNetStringer(t *testing.T) {
 		{btcwire.MainNet, "MainNet"},
 		{btcwire.TestNet, "TestNet"},
 		{btcwire.TestNet3, "TestNet3"},
+		{btcwire.SimNet, "SimNet"},
 		{0xffffffff, "Unknown BitcoinNet (4294967295)"},
 	}