Skip to content

Commit 7c58c43

Browse files
committed
Fix network magic bytes for TestNet4
1 parent 8a0f927 commit 7c58c43

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

wire/protocol.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,10 +186,10 @@ const (
186186
TestNet3 BitcoinNet = 0xf4f3e5f4
187187

188188
// TestNet4 represents the test network (version 4).
189-
TestNet4 BitcoinNet = 0xafdab7e2
189+
TestNet4 BitcoinNet = 0xe2b7daaf
190190

191191
// ChipNet represents the chip network.
192-
ChipNet BitcoinNet = 0xafdab7e2
192+
ChipNet BitcoinNet = 0xe2b7daaf
193193

194194
// SimNet represents the simulation test network.
195195
SimNet BitcoinNet = 0x12141c16
@@ -201,6 +201,7 @@ var bnStrings = map[BitcoinNet]string{
201201
MainNet: "MainNet",
202202
TestNet: "TestNet",
203203
TestNet3: "TestNet3",
204+
TestNet4: "TestNet4",
204205
SimNet: "SimNet",
205206
}
206207

0 commit comments

Comments
 (0)