diff --git a/protocol.go b/protocol.go index d5de61cb7..89f0fcd2b 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 3eb799399..61a59aaa8 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)"}, }