2016-08-08 21:04:33 +02:00
|
|
|
// Copyright (c) 2014-2016 The btcsuite developers
|
2014-05-28 07:23:10 +02:00
|
|
|
// Use of this source code is governed by an ISC
|
|
|
|
// license that can be found in the LICENSE file.
|
|
|
|
|
2016-04-11 21:21:40 +02:00
|
|
|
package chaincfg
|
2014-05-28 07:23:10 +02:00
|
|
|
|
|
|
|
import (
|
|
|
|
"bytes"
|
2014-07-03 02:42:07 +02:00
|
|
|
"testing"
|
|
|
|
|
2014-05-28 07:23:10 +02:00
|
|
|
"github.com/davecgh/go-spew/spew"
|
|
|
|
)
|
|
|
|
|
|
|
|
// TestGenesisBlock tests the genesis block of the main network for validity by
|
|
|
|
// checking the encoded bytes and hashes.
|
|
|
|
func TestGenesisBlock(t *testing.T) {
|
|
|
|
// Encode the genesis block to raw bytes.
|
|
|
|
var buf bytes.Buffer
|
2016-04-11 21:21:40 +02:00
|
|
|
err := MainNetParams.GenesisBlock.Serialize(&buf)
|
2014-05-28 07:23:10 +02:00
|
|
|
if err != nil {
|
|
|
|
t.Fatalf("TestGenesisBlock: %v", err)
|
|
|
|
}
|
|
|
|
|
|
|
|
// Ensure the encoded block matches the expected bytes.
|
|
|
|
if !bytes.Equal(buf.Bytes(), genesisBlockBytes) {
|
|
|
|
t.Fatalf("TestGenesisBlock: Genesis block does not appear valid - "+
|
|
|
|
"got %v, want %v", spew.Sdump(buf.Bytes()),
|
|
|
|
spew.Sdump(genesisBlockBytes))
|
|
|
|
}
|
|
|
|
|
|
|
|
// Check hash of the block against expected hash.
|
2016-08-08 21:04:33 +02:00
|
|
|
hash := MainNetParams.GenesisBlock.BlockHash()
|
2016-04-11 21:21:40 +02:00
|
|
|
if !MainNetParams.GenesisHash.IsEqual(&hash) {
|
2014-05-28 07:23:10 +02:00
|
|
|
t.Fatalf("TestGenesisBlock: Genesis block hash does not "+
|
|
|
|
"appear valid - got %v, want %v", spew.Sdump(hash),
|
2016-04-11 21:21:40 +02:00
|
|
|
spew.Sdump(MainNetParams.GenesisHash))
|
2014-05-28 07:23:10 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// TestRegTestGenesisBlock tests the genesis block of the regression test
|
|
|
|
// network for validity by checking the encoded bytes and hashes.
|
|
|
|
func TestRegTestGenesisBlock(t *testing.T) {
|
|
|
|
// Encode the genesis block to raw bytes.
|
|
|
|
var buf bytes.Buffer
|
2016-04-11 21:21:40 +02:00
|
|
|
err := RegressionNetParams.GenesisBlock.Serialize(&buf)
|
2014-05-28 07:23:10 +02:00
|
|
|
if err != nil {
|
|
|
|
t.Fatalf("TestRegTestGenesisBlock: %v", err)
|
|
|
|
}
|
|
|
|
|
|
|
|
// Ensure the encoded block matches the expected bytes.
|
|
|
|
if !bytes.Equal(buf.Bytes(), regTestGenesisBlockBytes) {
|
|
|
|
t.Fatalf("TestRegTestGenesisBlock: Genesis block does not "+
|
|
|
|
"appear valid - got %v, want %v",
|
|
|
|
spew.Sdump(buf.Bytes()),
|
|
|
|
spew.Sdump(regTestGenesisBlockBytes))
|
|
|
|
}
|
|
|
|
|
|
|
|
// Check hash of the block against expected hash.
|
2016-08-08 21:04:33 +02:00
|
|
|
hash := RegressionNetParams.GenesisBlock.BlockHash()
|
2016-04-11 21:21:40 +02:00
|
|
|
if !RegressionNetParams.GenesisHash.IsEqual(&hash) {
|
2014-05-28 07:23:10 +02:00
|
|
|
t.Fatalf("TestRegTestGenesisBlock: Genesis block hash does "+
|
|
|
|
"not appear valid - got %v, want %v", spew.Sdump(hash),
|
2016-04-11 21:21:40 +02:00
|
|
|
spew.Sdump(RegressionNetParams.GenesisHash))
|
2014-05-28 07:23:10 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// TestTestNet3GenesisBlock tests the genesis block of the test network (version
|
|
|
|
// 3) for validity by checking the encoded bytes and hashes.
|
|
|
|
func TestTestNet3GenesisBlock(t *testing.T) {
|
|
|
|
// Encode the genesis block to raw bytes.
|
|
|
|
var buf bytes.Buffer
|
2016-04-11 21:21:40 +02:00
|
|
|
err := TestNet3Params.GenesisBlock.Serialize(&buf)
|
2014-05-28 07:23:10 +02:00
|
|
|
if err != nil {
|
|
|
|
t.Fatalf("TestTestNet3GenesisBlock: %v", err)
|
|
|
|
}
|
|
|
|
|
|
|
|
// Ensure the encoded block matches the expected bytes.
|
|
|
|
if !bytes.Equal(buf.Bytes(), testNet3GenesisBlockBytes) {
|
|
|
|
t.Fatalf("TestTestNet3GenesisBlock: Genesis block does not "+
|
|
|
|
"appear valid - got %v, want %v",
|
|
|
|
spew.Sdump(buf.Bytes()),
|
|
|
|
spew.Sdump(testNet3GenesisBlockBytes))
|
|
|
|
}
|
|
|
|
|
|
|
|
// Check hash of the block against expected hash.
|
2016-08-08 21:04:33 +02:00
|
|
|
hash := TestNet3Params.GenesisBlock.BlockHash()
|
2016-04-11 21:21:40 +02:00
|
|
|
if !TestNet3Params.GenesisHash.IsEqual(&hash) {
|
2014-05-28 07:23:10 +02:00
|
|
|
t.Fatalf("TestTestNet3GenesisBlock: Genesis block hash does "+
|
|
|
|
"not appear valid - got %v, want %v", spew.Sdump(hash),
|
2016-04-11 21:21:40 +02:00
|
|
|
spew.Sdump(TestNet3Params.GenesisHash))
|
2014-05-28 07:23:10 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-05-28 08:46:13 +02:00
|
|
|
// TestSimNetGenesisBlock tests the genesis block of the simulation test network
|
|
|
|
// for validity by checking the encoded bytes and hashes.
|
|
|
|
func TestSimNetGenesisBlock(t *testing.T) {
|
|
|
|
// Encode the genesis block to raw bytes.
|
|
|
|
var buf bytes.Buffer
|
2016-04-11 21:21:40 +02:00
|
|
|
err := SimNetParams.GenesisBlock.Serialize(&buf)
|
2014-05-28 08:46:13 +02:00
|
|
|
if err != nil {
|
|
|
|
t.Fatalf("TestSimNetGenesisBlock: %v", err)
|
|
|
|
}
|
|
|
|
|
|
|
|
// Ensure the encoded block matches the expected bytes.
|
|
|
|
if !bytes.Equal(buf.Bytes(), simNetGenesisBlockBytes) {
|
|
|
|
t.Fatalf("TestSimNetGenesisBlock: Genesis block does not "+
|
|
|
|
"appear valid - got %v, want %v",
|
|
|
|
spew.Sdump(buf.Bytes()),
|
|
|
|
spew.Sdump(simNetGenesisBlockBytes))
|
|
|
|
}
|
|
|
|
|
|
|
|
// Check hash of the block against expected hash.
|
2016-08-08 21:04:33 +02:00
|
|
|
hash := SimNetParams.GenesisBlock.BlockHash()
|
2016-04-11 21:21:40 +02:00
|
|
|
if !SimNetParams.GenesisHash.IsEqual(&hash) {
|
2014-05-28 08:46:13 +02:00
|
|
|
t.Fatalf("TestSimNetGenesisBlock: Genesis block hash does "+
|
|
|
|
"not appear valid - got %v, want %v", spew.Sdump(hash),
|
2016-04-11 21:21:40 +02:00
|
|
|
spew.Sdump(SimNetParams.GenesisHash))
|
2014-05-28 08:46:13 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-12-24 16:51:59 +01:00
|
|
|
// TestSigNetGenesisBlock tests the genesis block of the signet test network for
|
|
|
|
// validity by checking the encoded bytes and hashes.
|
|
|
|
func TestSigNetGenesisBlock(t *testing.T) {
|
|
|
|
// Encode the genesis block to raw bytes.
|
|
|
|
var buf bytes.Buffer
|
|
|
|
err := SigNetParams.GenesisBlock.Serialize(&buf)
|
|
|
|
if err != nil {
|
|
|
|
t.Fatalf("TestSigNetGenesisBlock: %v", err)
|
|
|
|
}
|
|
|
|
|
|
|
|
// Ensure the encoded block matches the expected bytes.
|
|
|
|
if !bytes.Equal(buf.Bytes(), sigNetGenesisBlockBytes) {
|
|
|
|
t.Fatalf("TestSigNetGenesisBlock: Genesis block does not "+
|
|
|
|
"appear valid - got %v, want %v",
|
|
|
|
spew.Sdump(buf.Bytes()),
|
|
|
|
spew.Sdump(sigNetGenesisBlockBytes))
|
|
|
|
}
|
|
|
|
|
|
|
|
// Check hash of the block against expected hash.
|
|
|
|
hash := SigNetParams.GenesisBlock.BlockHash()
|
|
|
|
if !SigNetParams.GenesisHash.IsEqual(&hash) {
|
|
|
|
t.Fatalf("TestSigNetGenesisBlock: Genesis block hash does "+
|
|
|
|
"not appear valid - got %v, want %v", spew.Sdump(hash),
|
|
|
|
spew.Sdump(SigNetParams.GenesisHash))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-05-28 07:23:10 +02:00
|
|
|
// genesisBlockBytes are the wire encoded bytes for the genesis block of the
|
|
|
|
// main network as of protocol version 60002.
|
|
|
|
var genesisBlockBytes = []byte{
|
|
|
|
0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* |........| */
|
|
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* |........| */
|
|
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* |........| */
|
|
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* |........| */
|
|
|
|
0x00, 0x00, 0x00, 0x00, 0x3b, 0xa3, 0xed, 0xfd, /* |....;...| */
|
|
|
|
0x7a, 0x7b, 0x12, 0xb2, 0x7a, 0xc7, 0x2c, 0x3e, /* |z{..z.,>| */
|
|
|
|
0x67, 0x76, 0x8f, 0x61, 0x7f, 0xc8, 0x1b, 0xc3, /* |gv.a....| */
|
|
|
|
0x88, 0x8a, 0x51, 0x32, 0x3a, 0x9f, 0xb8, 0xaa, /* |..Q2:...| */
|
|
|
|
0x4b, 0x1e, 0x5e, 0x4a, 0x29, 0xab, 0x5f, 0x49, /* |K.^J)._I| */
|
|
|
|
0xff, 0xff, 0x00, 0x1d, 0x1d, 0xac, 0x2b, 0x7c, /* |......+|| */
|
|
|
|
0x01, 0x01, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, /* |........| */
|
|
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* |........| */
|
|
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* |........| */
|
|
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* |........| */
|
|
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, /* |........| */
|
|
|
|
0xff, 0xff, 0x4d, 0x04, 0xff, 0xff, 0x00, 0x1d, /* |..M.....| */
|
|
|
|
0x01, 0x04, 0x45, 0x54, 0x68, 0x65, 0x20, 0x54, /* |..EThe T| */
|
|
|
|
0x69, 0x6d, 0x65, 0x73, 0x20, 0x30, 0x33, 0x2f, /* |imes 03/| */
|
|
|
|
0x4a, 0x61, 0x6e, 0x2f, 0x32, 0x30, 0x30, 0x39, /* |Jan/2009| */
|
|
|
|
0x20, 0x43, 0x68, 0x61, 0x6e, 0x63, 0x65, 0x6c, /* | Chancel| */
|
|
|
|
0x6c, 0x6f, 0x72, 0x20, 0x6f, 0x6e, 0x20, 0x62, /* |lor on b| */
|
|
|
|
0x72, 0x69, 0x6e, 0x6b, 0x20, 0x6f, 0x66, 0x20, /* |rink of | */
|
|
|
|
0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x20, 0x62, /* |second b| */
|
|
|
|
0x61, 0x69, 0x6c, 0x6f, 0x75, 0x74, 0x20, 0x66, /* |ailout f| */
|
|
|
|
0x6f, 0x72, 0x20, 0x62, 0x61, 0x6e, 0x6b, 0x73, /* |or banks| */
|
|
|
|
0xff, 0xff, 0xff, 0xff, 0x01, 0x00, 0xf2, 0x05, /* |........| */
|
|
|
|
0x2a, 0x01, 0x00, 0x00, 0x00, 0x43, 0x41, 0x04, /* |*....CA.| */
|
|
|
|
0x67, 0x8a, 0xfd, 0xb0, 0xfe, 0x55, 0x48, 0x27, /* |g....UH'| */
|
|
|
|
0x19, 0x67, 0xf1, 0xa6, 0x71, 0x30, 0xb7, 0x10, /* |.g..q0..| */
|
|
|
|
0x5c, 0xd6, 0xa8, 0x28, 0xe0, 0x39, 0x09, 0xa6, /* |\..(.9..| */
|
|
|
|
0x79, 0x62, 0xe0, 0xea, 0x1f, 0x61, 0xde, 0xb6, /* |yb...a..| */
|
|
|
|
0x49, 0xf6, 0xbc, 0x3f, 0x4c, 0xef, 0x38, 0xc4, /* |I..?L.8.| */
|
|
|
|
0xf3, 0x55, 0x04, 0xe5, 0x1e, 0xc1, 0x12, 0xde, /* |.U......| */
|
|
|
|
0x5c, 0x38, 0x4d, 0xf7, 0xba, 0x0b, 0x8d, 0x57, /* |\8M....W| */
|
|
|
|
0x8a, 0x4c, 0x70, 0x2b, 0x6b, 0xf1, 0x1d, 0x5f, /* |.Lp+k.._|*/
|
|
|
|
0xac, 0x00, 0x00, 0x00, 0x00, /* |.....| */
|
|
|
|
}
|
|
|
|
|
|
|
|
// regTestGenesisBlockBytes are the wire encoded bytes for the genesis block of
|
|
|
|
// the regression test network as of protocol version 60002.
|
|
|
|
var regTestGenesisBlockBytes = []byte{
|
|
|
|
0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* |........| */
|
|
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* |........| */
|
|
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* |........| */
|
|
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* |........| */
|
|
|
|
0x00, 0x00, 0x00, 0x00, 0x3b, 0xa3, 0xed, 0xfd, /* |....;...| */
|
|
|
|
0x7a, 0x7b, 0x12, 0xb2, 0x7a, 0xc7, 0x2c, 0x3e, /* |z{..z.,>| */
|
|
|
|
0x67, 0x76, 0x8f, 0x61, 0x7f, 0xc8, 0x1b, 0xc3, /* |gv.a....| */
|
|
|
|
0x88, 0x8a, 0x51, 0x32, 0x3a, 0x9f, 0xb8, 0xaa, /* |..Q2:...| */
|
|
|
|
0x4b, 0x1e, 0x5e, 0x4a, 0xda, 0xe5, 0x49, 0x4d, /* |K.^J)._I| */
|
|
|
|
0xff, 0xff, 0x7f, 0x20, 0x02, 0x00, 0x00, 0x00, /* |......+|| */
|
|
|
|
0x01, 0x01, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, /* |........| */
|
|
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* |........| */
|
|
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* |........| */
|
|
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* |........| */
|
|
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, /* |........| */
|
|
|
|
0xff, 0xff, 0x4d, 0x04, 0xff, 0xff, 0x00, 0x1d, /* |..M.....| */
|
|
|
|
0x01, 0x04, 0x45, 0x54, 0x68, 0x65, 0x20, 0x54, /* |..EThe T| */
|
|
|
|
0x69, 0x6d, 0x65, 0x73, 0x20, 0x30, 0x33, 0x2f, /* |imes 03/| */
|
|
|
|
0x4a, 0x61, 0x6e, 0x2f, 0x32, 0x30, 0x30, 0x39, /* |Jan/2009| */
|
|
|
|
0x20, 0x43, 0x68, 0x61, 0x6e, 0x63, 0x65, 0x6c, /* | Chancel| */
|
|
|
|
0x6c, 0x6f, 0x72, 0x20, 0x6f, 0x6e, 0x20, 0x62, /* |lor on b| */
|
|
|
|
0x72, 0x69, 0x6e, 0x6b, 0x20, 0x6f, 0x66, 0x20, /* |rink of | */
|
|
|
|
0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x20, 0x62, /* |second b| */
|
|
|
|
0x61, 0x69, 0x6c, 0x6f, 0x75, 0x74, 0x20, 0x66, /* |ailout f| */
|
|
|
|
0x6f, 0x72, 0x20, 0x62, 0x61, 0x6e, 0x6b, 0x73, /* |or banks| */
|
|
|
|
0xff, 0xff, 0xff, 0xff, 0x01, 0x00, 0xf2, 0x05, /* |........| */
|
|
|
|
0x2a, 0x01, 0x00, 0x00, 0x00, 0x43, 0x41, 0x04, /* |*....CA.| */
|
|
|
|
0x67, 0x8a, 0xfd, 0xb0, 0xfe, 0x55, 0x48, 0x27, /* |g....UH'| */
|
|
|
|
0x19, 0x67, 0xf1, 0xa6, 0x71, 0x30, 0xb7, 0x10, /* |.g..q0..| */
|
|
|
|
0x5c, 0xd6, 0xa8, 0x28, 0xe0, 0x39, 0x09, 0xa6, /* |\..(.9..| */
|
|
|
|
0x79, 0x62, 0xe0, 0xea, 0x1f, 0x61, 0xde, 0xb6, /* |yb...a..| */
|
|
|
|
0x49, 0xf6, 0xbc, 0x3f, 0x4c, 0xef, 0x38, 0xc4, /* |I..?L.8.| */
|
|
|
|
0xf3, 0x55, 0x04, 0xe5, 0x1e, 0xc1, 0x12, 0xde, /* |.U......| */
|
|
|
|
0x5c, 0x38, 0x4d, 0xf7, 0xba, 0x0b, 0x8d, 0x57, /* |\8M....W| */
|
|
|
|
0x8a, 0x4c, 0x70, 0x2b, 0x6b, 0xf1, 0x1d, 0x5f, /* |.Lp+k.._|*/
|
|
|
|
0xac, 0x00, 0x00, 0x00, 0x00, /* |.....| */
|
|
|
|
}
|
|
|
|
|
|
|
|
// testNet3GenesisBlockBytes are the wire encoded bytes for the genesis block of
|
|
|
|
// the test network (version 3) as of protocol version 60002.
|
|
|
|
var testNet3GenesisBlockBytes = []byte{
|
|
|
|
0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* |........| */
|
|
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* |........| */
|
|
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* |........| */
|
|
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* |........| */
|
|
|
|
0x00, 0x00, 0x00, 0x00, 0x3b, 0xa3, 0xed, 0xfd, /* |....;...| */
|
|
|
|
0x7a, 0x7b, 0x12, 0xb2, 0x7a, 0xc7, 0x2c, 0x3e, /* |z{..z.,>| */
|
|
|
|
0x67, 0x76, 0x8f, 0x61, 0x7f, 0xc8, 0x1b, 0xc3, /* |gv.a....| */
|
|
|
|
0x88, 0x8a, 0x51, 0x32, 0x3a, 0x9f, 0xb8, 0xaa, /* |..Q2:...| */
|
|
|
|
0x4b, 0x1e, 0x5e, 0x4a, 0xda, 0xe5, 0x49, 0x4d, /* |K.^J)._I| */
|
|
|
|
0xff, 0xff, 0x00, 0x1d, 0x1a, 0xa4, 0xae, 0x18, /* |......+|| */
|
|
|
|
0x01, 0x01, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, /* |........| */
|
|
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* |........| */
|
|
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* |........| */
|
|
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* |........| */
|
|
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, /* |........| */
|
|
|
|
0xff, 0xff, 0x4d, 0x04, 0xff, 0xff, 0x00, 0x1d, /* |..M.....| */
|
|
|
|
0x01, 0x04, 0x45, 0x54, 0x68, 0x65, 0x20, 0x54, /* |..EThe T| */
|
|
|
|
0x69, 0x6d, 0x65, 0x73, 0x20, 0x30, 0x33, 0x2f, /* |imes 03/| */
|
|
|
|
0x4a, 0x61, 0x6e, 0x2f, 0x32, 0x30, 0x30, 0x39, /* |Jan/2009| */
|
|
|
|
0x20, 0x43, 0x68, 0x61, 0x6e, 0x63, 0x65, 0x6c, /* | Chancel| */
|
|
|
|
0x6c, 0x6f, 0x72, 0x20, 0x6f, 0x6e, 0x20, 0x62, /* |lor on b| */
|
2014-05-28 08:46:13 +02:00
|
|
|
0x72, 0x69, 0x6e, 0x6b, 0x20, 0x6f, 0x66, 0x20, /* |rink of | */
|
|
|
|
0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x20, 0x62, /* |second b| */
|
|
|
|
0x61, 0x69, 0x6c, 0x6f, 0x75, 0x74, 0x20, 0x66, /* |ailout f| */
|
|
|
|
0x6f, 0x72, 0x20, 0x62, 0x61, 0x6e, 0x6b, 0x73, /* |or banks| */
|
|
|
|
0xff, 0xff, 0xff, 0xff, 0x01, 0x00, 0xf2, 0x05, /* |........| */
|
|
|
|
0x2a, 0x01, 0x00, 0x00, 0x00, 0x43, 0x41, 0x04, /* |*....CA.| */
|
|
|
|
0x67, 0x8a, 0xfd, 0xb0, 0xfe, 0x55, 0x48, 0x27, /* |g....UH'| */
|
|
|
|
0x19, 0x67, 0xf1, 0xa6, 0x71, 0x30, 0xb7, 0x10, /* |.g..q0..| */
|
|
|
|
0x5c, 0xd6, 0xa8, 0x28, 0xe0, 0x39, 0x09, 0xa6, /* |\..(.9..| */
|
|
|
|
0x79, 0x62, 0xe0, 0xea, 0x1f, 0x61, 0xde, 0xb6, /* |yb...a..| */
|
|
|
|
0x49, 0xf6, 0xbc, 0x3f, 0x4c, 0xef, 0x38, 0xc4, /* |I..?L.8.| */
|
|
|
|
0xf3, 0x55, 0x04, 0xe5, 0x1e, 0xc1, 0x12, 0xde, /* |.U......| */
|
|
|
|
0x5c, 0x38, 0x4d, 0xf7, 0xba, 0x0b, 0x8d, 0x57, /* |\8M....W| */
|
|
|
|
0x8a, 0x4c, 0x70, 0x2b, 0x6b, 0xf1, 0x1d, 0x5f, /* |.Lp+k.._|*/
|
|
|
|
0xac, 0x00, 0x00, 0x00, 0x00, /* |.....| */
|
|
|
|
}
|
|
|
|
|
|
|
|
// simNetGenesisBlockBytes are the wire encoded bytes for the genesis block of
|
|
|
|
// the simulation test network as of protocol version 70002.
|
|
|
|
var simNetGenesisBlockBytes = []byte{
|
|
|
|
0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* |........| */
|
|
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* |........| */
|
|
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* |........| */
|
|
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* |........| */
|
|
|
|
0x00, 0x00, 0x00, 0x00, 0x3b, 0xa3, 0xed, 0xfd, /* |....;...| */
|
|
|
|
0x7a, 0x7b, 0x12, 0xb2, 0x7a, 0xc7, 0x2c, 0x3e, /* |z{..z.,>| */
|
|
|
|
0x67, 0x76, 0x8f, 0x61, 0x7f, 0xc8, 0x1b, 0xc3, /* |gv.a....| */
|
|
|
|
0x88, 0x8a, 0x51, 0x32, 0x3a, 0x9f, 0xb8, 0xaa, /* |..Q2:...| */
|
|
|
|
0x4b, 0x1e, 0x5e, 0x4a, 0x45, 0x06, 0x86, 0x53, /* |K.^J)._I| */
|
|
|
|
0xff, 0xff, 0x7f, 0x20, 0x02, 0x00, 0x00, 0x00, /* |......+|| */
|
|
|
|
0x01, 0x01, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, /* |........| */
|
|
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* |........| */
|
|
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* |........| */
|
|
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* |........| */
|
|
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, /* |........| */
|
|
|
|
0xff, 0xff, 0x4d, 0x04, 0xff, 0xff, 0x00, 0x1d, /* |..M.....| */
|
|
|
|
0x01, 0x04, 0x45, 0x54, 0x68, 0x65, 0x20, 0x54, /* |..EThe T| */
|
|
|
|
0x69, 0x6d, 0x65, 0x73, 0x20, 0x30, 0x33, 0x2f, /* |imes 03/| */
|
|
|
|
0x4a, 0x61, 0x6e, 0x2f, 0x32, 0x30, 0x30, 0x39, /* |Jan/2009| */
|
|
|
|
0x20, 0x43, 0x68, 0x61, 0x6e, 0x63, 0x65, 0x6c, /* | Chancel| */
|
|
|
|
0x6c, 0x6f, 0x72, 0x20, 0x6f, 0x6e, 0x20, 0x62, /* |lor on b| */
|
2014-05-28 07:23:10 +02:00
|
|
|
0x72, 0x69, 0x6e, 0x6b, 0x20, 0x6f, 0x66, 0x20, /* |rink of | */
|
|
|
|
0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x20, 0x62, /* |second b| */
|
|
|
|
0x61, 0x69, 0x6c, 0x6f, 0x75, 0x74, 0x20, 0x66, /* |ailout f| */
|
|
|
|
0x6f, 0x72, 0x20, 0x62, 0x61, 0x6e, 0x6b, 0x73, /* |or banks| */
|
|
|
|
0xff, 0xff, 0xff, 0xff, 0x01, 0x00, 0xf2, 0x05, /* |........| */
|
|
|
|
0x2a, 0x01, 0x00, 0x00, 0x00, 0x43, 0x41, 0x04, /* |*....CA.| */
|
|
|
|
0x67, 0x8a, 0xfd, 0xb0, 0xfe, 0x55, 0x48, 0x27, /* |g....UH'| */
|
|
|
|
0x19, 0x67, 0xf1, 0xa6, 0x71, 0x30, 0xb7, 0x10, /* |.g..q0..| */
|
|
|
|
0x5c, 0xd6, 0xa8, 0x28, 0xe0, 0x39, 0x09, 0xa6, /* |\..(.9..| */
|
|
|
|
0x79, 0x62, 0xe0, 0xea, 0x1f, 0x61, 0xde, 0xb6, /* |yb...a..| */
|
|
|
|
0x49, 0xf6, 0xbc, 0x3f, 0x4c, 0xef, 0x38, 0xc4, /* |I..?L.8.| */
|
|
|
|
0xf3, 0x55, 0x04, 0xe5, 0x1e, 0xc1, 0x12, 0xde, /* |.U......| */
|
|
|
|
0x5c, 0x38, 0x4d, 0xf7, 0xba, 0x0b, 0x8d, 0x57, /* |\8M....W| */
|
|
|
|
0x8a, 0x4c, 0x70, 0x2b, 0x6b, 0xf1, 0x1d, 0x5f, /* |.Lp+k.._|*/
|
|
|
|
0xac, 0x00, 0x00, 0x00, 0x00, /* |.....| */
|
|
|
|
}
|
2020-12-24 16:51:59 +01:00
|
|
|
|
|
|
|
// sigNetGenesisBlockBytes are the wire encoded bytes for the genesis block of
|
|
|
|
// the signet test network as of protocol version 70002.
|
|
|
|
var sigNetGenesisBlockBytes = []byte{
|
|
|
|
0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* |...@....| */
|
|
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* |........| */
|
|
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* |........| */
|
|
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* |........| */
|
|
|
|
0x00, 0x00, 0x00, 0x00, 0x3b, 0xa3, 0xed, 0xfd, /* |........| */
|
|
|
|
0x7a, 0x7b, 0x12, 0xb2, 0x7a, 0xc7, 0x2c, 0x3e, /* |....;...| */
|
|
|
|
0x67, 0x76, 0x8f, 0x61, 0x7f, 0xc8, 0x1b, 0xc3, /* |z{..z.,>| */
|
|
|
|
0x88, 0x8a, 0x51, 0x32, 0x3a, 0x9f, 0xb8, 0xaa, /* |gv.a....| */
|
|
|
|
0x4b, 0x1e, 0x5e, 0x4a, 0x00, 0x8f, 0x4d, 0x5f, /* |..Q2:...| */
|
|
|
|
0xae, 0x77, 0x03, 0x1e, 0x8a, 0xd2, 0x22, 0x03, /* |K.^J..M_| */
|
|
|
|
0x01, 0x01, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, /* |.w....".| */
|
|
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* |........| */
|
|
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* |........| */
|
|
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* |........| */
|
|
|
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, /* |........| */
|
|
|
|
0xff, 0xff, 0x4d, 0x04, 0xff, 0xff, 0x00, 0x1d, /* |........| */
|
|
|
|
0x01, 0x04, 0x45, 0x54, 0x68, 0x65, 0x20, 0x54, /* |..M.....| */
|
|
|
|
0x69, 0x6d, 0x65, 0x73, 0x20, 0x30, 0x33, 0x2f, /* |..EThe T| */
|
|
|
|
0x4a, 0x61, 0x6e, 0x2f, 0x32, 0x30, 0x30, 0x39, /* |imes 03/| */
|
|
|
|
0x20, 0x43, 0x68, 0x61, 0x6e, 0x63, 0x65, 0x6c, /* |Jan/2009| */
|
|
|
|
0x6c, 0x6f, 0x72, 0x20, 0x6f, 0x6e, 0x20, 0x62, /* | Chancel| */
|
|
|
|
0x72, 0x69, 0x6e, 0x6b, 0x20, 0x6f, 0x66, 0x20, /* |lor on b| */
|
|
|
|
0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x20, 0x62, /* |rink of| */
|
|
|
|
0x61, 0x69, 0x6c, 0x6f, 0x75, 0x74, 0x20, 0x66, /* |second b| */
|
|
|
|
0x6f, 0x72, 0x20, 0x62, 0x61, 0x6e, 0x6b, 0x73, /* |ailout f| */
|
|
|
|
0xff, 0xff, 0xff, 0xff, 0x01, 0x00, 0xf2, 0x05, /* |or banks| */
|
|
|
|
0x2a, 0x01, 0x00, 0x00, 0x00, 0x43, 0x41, 0x04, /* |........| */
|
|
|
|
0x67, 0x8a, 0xfd, 0xb0, 0xfe, 0x55, 0x48, 0x27, /* |*....CA.| */
|
|
|
|
0x19, 0x67, 0xf1, 0xa6, 0x71, 0x30, 0xb7, 0x10, /* |g....UH'| */
|
|
|
|
0x5c, 0xd6, 0xa8, 0x28, 0xe0, 0x39, 0x09, 0xa6, /* |.g..q0..| */
|
|
|
|
0x79, 0x62, 0xe0, 0xea, 0x1f, 0x61, 0xde, 0xb6, /* |\..(.9..| */
|
|
|
|
0x49, 0xf6, 0xbc, 0x3f, 0x4c, 0xef, 0x38, 0xc4, /* |yb...a..| */
|
|
|
|
0xf3, 0x55, 0x04, 0xe5, 0x1e, 0xc1, 0x12, 0xde, /* |I..?L.8.| */
|
|
|
|
0x5c, 0x38, 0x4d, 0xf7, 0xba, 0x0b, 0x8d, 0x57, /* |.U......| */
|
|
|
|
0x8a, 0x4c, 0x70, 0x2b, 0x6b, 0xf1, 0x1d, 0x5f, /* |\8M....W| */
|
|
|
|
0xac, 0x00, 0x00, 0x00, 0x00, /* |.....| */
|
|
|
|
}
|