1 // Package wire contains a set of data structure definitions for the bitcoin
2 // blockchain.
3 package wire
4 5 // BitcoinNet represents which bitcoin network a message belongs to.
6 type BitcoinNet uint32
7 8 // Constants used to indicate the message bitcoin network. They can also be
9 // used to seek to the next message when a stream's state is unknown, but
10 // this package does not provide that functionality since it's generally a
11 // better idea to simply disconnect clients that are misbehaving over TCP.
12 const (
13 // MainNet represents the main bitcoin network.
14 MainNet BitcoinNet = 0xd9b4bef9
15 16 // TestNet represents the regression test network.
17 TestNet BitcoinNet = 0xdab5bffa
18 19 // TestNet3 represents the test network (version 3).
20 TestNet3 BitcoinNet = 0x0709110b
21 22 // SimNet represents the simulation test network.
23 SimNet BitcoinNet = 0x12141c16
24 )
25