wire: add TestNet4

This commit is contained in:
Oleg Bondar 2025-02-10 15:39:29 +00:00 committed by Olaoluwa Osuntokun
parent 3e3c7791e7
commit ac1399f0d3
2 changed files with 5 additions and 0 deletions

View file

@ -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",
}

View file

@ -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)"},