From ac1399f0d32d87cff826a8a2883b6a6fc19d68b3 Mon Sep 17 00:00:00 2001 From: Oleg Bondar Date: Mon, 10 Feb 2025 15:39:29 +0000 Subject: [PATCH] wire: add TestNet4 --- wire/protocol.go | 4 ++++ wire/protocol_test.go | 1 + 2 files changed, 5 insertions(+) diff --git a/wire/protocol.go b/wire/protocol.go index b6e5ea92..65d19f52 100644 --- a/wire/protocol.go +++ b/wire/protocol.go @@ -179,6 +179,9 @@ const ( // TestNet3 represents the test network (version 3). TestNet3 BitcoinNet = 0x0709110b + // TestNet4 represents the test network (version 4). + TestNet4 BitcoinNet = 0x283f161c + // SigNet represents the public default SigNet. For custom signets, // see CustomSignetParams. SigNet BitcoinNet = 0x40CF030A @@ -193,6 +196,7 @@ var bnStrings = map[BitcoinNet]string{ MainNet: "MainNet", TestNet: "TestNet", TestNet3: "TestNet3", + TestNet4: "TestNet4", SigNet: "SigNet", SimNet: "SimNet", } diff --git a/wire/protocol_test.go b/wire/protocol_test.go index 5ab5b9dd..46498849 100644 --- a/wire/protocol_test.go +++ b/wire/protocol_test.go @@ -49,6 +49,7 @@ func TestBitcoinNetStringer(t *testing.T) { {MainNet, "MainNet"}, {TestNet, "TestNet"}, {TestNet3, "TestNet3"}, + {TestNet4, "TestNet4"}, {SigNet, "SigNet"}, {SimNet, "SimNet"}, {0xffffffff, "Unknown BitcoinNet (4294967295)"},