mirror of
https://github.com/btcsuite/btcd.git
synced 2025-03-13 11:35:52 +01:00
wire: add TestNet4
This commit is contained in:
parent
3e3c7791e7
commit
ac1399f0d3
2 changed files with 5 additions and 0 deletions
|
@ -179,6 +179,9 @@ const (
|
||||||
// TestNet3 represents the test network (version 3).
|
// TestNet3 represents the test network (version 3).
|
||||||
TestNet3 BitcoinNet = 0x0709110b
|
TestNet3 BitcoinNet = 0x0709110b
|
||||||
|
|
||||||
|
// TestNet4 represents the test network (version 4).
|
||||||
|
TestNet4 BitcoinNet = 0x283f161c
|
||||||
|
|
||||||
// SigNet represents the public default SigNet. For custom signets,
|
// SigNet represents the public default SigNet. For custom signets,
|
||||||
// see CustomSignetParams.
|
// see CustomSignetParams.
|
||||||
SigNet BitcoinNet = 0x40CF030A
|
SigNet BitcoinNet = 0x40CF030A
|
||||||
|
@ -193,6 +196,7 @@ var bnStrings = map[BitcoinNet]string{
|
||||||
MainNet: "MainNet",
|
MainNet: "MainNet",
|
||||||
TestNet: "TestNet",
|
TestNet: "TestNet",
|
||||||
TestNet3: "TestNet3",
|
TestNet3: "TestNet3",
|
||||||
|
TestNet4: "TestNet4",
|
||||||
SigNet: "SigNet",
|
SigNet: "SigNet",
|
||||||
SimNet: "SimNet",
|
SimNet: "SimNet",
|
||||||
}
|
}
|
||||||
|
|
|
@ -49,6 +49,7 @@ func TestBitcoinNetStringer(t *testing.T) {
|
||||||
{MainNet, "MainNet"},
|
{MainNet, "MainNet"},
|
||||||
{TestNet, "TestNet"},
|
{TestNet, "TestNet"},
|
||||||
{TestNet3, "TestNet3"},
|
{TestNet3, "TestNet3"},
|
||||||
|
{TestNet4, "TestNet4"},
|
||||||
{SigNet, "SigNet"},
|
{SigNet, "SigNet"},
|
||||||
{SimNet, "SimNet"},
|
{SimNet, "SimNet"},
|
||||||
{0xffffffff, "Unknown BitcoinNet (4294967295)"},
|
{0xffffffff, "Unknown BitcoinNet (4294967295)"},
|
||||||
|
|
Loading…
Add table
Reference in a new issue