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.
|
|
|
|
|
2015-02-06 04:36:42 +01:00
|
|
|
package chaincfg
|
2014-05-28 07:23:10 +02:00
|
|
|
|
|
|
|
import (
|
|
|
|
"time"
|
2014-07-03 02:42:07 +02:00
|
|
|
|
2021-10-15 07:45:32 +02:00
|
|
|
"github.com/lbryio/lbcd/chaincfg/chainhash"
|
|
|
|
"github.com/lbryio/lbcd/wire"
|
2014-05-28 07:23:10 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
// genesisCoinbaseTx is the coinbase transaction for the genesis blocks for
|
|
|
|
// the main network, regression test network, and test network (version 3).
|
2015-02-05 19:58:30 +01:00
|
|
|
var genesisCoinbaseTx = wire.MsgTx{
|
2014-05-28 07:23:10 +02:00
|
|
|
Version: 1,
|
2015-02-05 19:58:30 +01:00
|
|
|
TxIn: []*wire.TxIn{
|
2014-05-28 07:23:10 +02:00
|
|
|
{
|
2015-02-05 19:58:30 +01:00
|
|
|
PreviousOutPoint: wire.OutPoint{
|
2016-08-08 21:04:33 +02:00
|
|
|
Hash: chainhash.Hash{},
|
2014-05-28 07:23:10 +02:00
|
|
|
Index: 0xffffffff,
|
|
|
|
},
|
|
|
|
SignatureScript: []byte{
|
2018-05-29 06:03:41 +02:00
|
|
|
0x04, 0xff, 0xff, 0x00, 0x1d, 0x01, 0x04, 0x17,
|
|
|
|
0x69, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x20, 0x74,
|
|
|
|
0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70,
|
|
|
|
0x20, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67,
|
2014-05-28 07:23:10 +02:00
|
|
|
},
|
|
|
|
Sequence: 0xffffffff,
|
|
|
|
},
|
|
|
|
},
|
2015-02-05 19:58:30 +01:00
|
|
|
TxOut: []*wire.TxOut{
|
2014-05-28 07:23:10 +02:00
|
|
|
{
|
2018-05-29 06:03:41 +02:00
|
|
|
Value: 0x8e1bc9bf040000, // 400000000 * COIN
|
2014-05-28 07:23:10 +02:00
|
|
|
PkScript: []byte{
|
2018-05-29 06:03:41 +02:00
|
|
|
0x76, 0xa9, 0x14, 0x34, 0x59, 0x91, 0xdb, 0xf5,
|
|
|
|
0x7b, 0xfb, 0x01, 0x4b, 0x87, 0x00, 0x6a, 0xcd,
|
|
|
|
0xfa, 0xfb, 0xfc, 0x5f, 0xe8, 0x29, 0x2f, 0x88,
|
|
|
|
0xac,
|
2014-05-28 07:23:10 +02:00
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
LockTime: 0,
|
|
|
|
}
|
|
|
|
|
|
|
|
// genesisHash is the hash of the first block in the block chain for the main
|
|
|
|
// network (genesis block).
|
2016-08-08 21:04:33 +02:00
|
|
|
var genesisHash = chainhash.Hash([chainhash.HashSize]byte{ // Make go vet happy.
|
2018-05-29 06:03:41 +02:00
|
|
|
0x63, 0xf4, 0x34, 0x6a, 0x4d, 0xb3, 0x4f, 0xdf,
|
|
|
|
0xce, 0x29, 0xa7, 0x0f, 0x5e, 0x8d, 0x11, 0xf0,
|
|
|
|
0x65, 0xf6, 0xb9, 0x16, 0x02, 0xb7, 0x03, 0x6c,
|
|
|
|
0x7f, 0x22, 0xf3, 0xa0, 0x3b, 0x28, 0x89, 0x9c,
|
2014-09-12 21:04:03 +02:00
|
|
|
})
|
2014-05-28 07:23:10 +02:00
|
|
|
|
|
|
|
// genesisMerkleRoot is the hash of the first transaction in the genesis block
|
|
|
|
// for the main network.
|
2016-08-08 21:04:33 +02:00
|
|
|
var genesisMerkleRoot = chainhash.Hash([chainhash.HashSize]byte{ // Make go vet happy.
|
2018-05-29 06:03:41 +02:00
|
|
|
0xcc, 0x59, 0xe5, 0x9f, 0xf9, 0x7a, 0xc0, 0x92,
|
|
|
|
0xb5, 0x5e, 0x42, 0x3a, 0xa5, 0x49, 0x51, 0x51,
|
|
|
|
0xed, 0x6f, 0xb8, 0x05, 0x70, 0xa5, 0xbb, 0x78,
|
|
|
|
0xcd, 0x5b, 0xd1, 0xc3, 0x82, 0x1c, 0x21, 0xb8,
|
|
|
|
})
|
|
|
|
|
|
|
|
// genesisClaimTrie is the hash of the first transaction in the genesis block
|
|
|
|
// for the main network.
|
|
|
|
var genesisClaimTrie = chainhash.Hash([chainhash.HashSize]byte{ // Make go vet happy.
|
|
|
|
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,
|
2014-09-12 21:04:03 +02:00
|
|
|
})
|
2014-05-28 07:23:10 +02:00
|
|
|
|
|
|
|
// genesisBlock defines the genesis block of the block chain which serves as the
|
|
|
|
// public transaction ledger for the main network.
|
2015-02-05 19:58:30 +01:00
|
|
|
var genesisBlock = wire.MsgBlock{
|
|
|
|
Header: wire.BlockHeader{
|
2014-05-28 07:23:10 +02:00
|
|
|
Version: 1,
|
2016-08-08 21:04:33 +02:00
|
|
|
PrevBlock: chainhash.Hash{}, // 0000000000000000000000000000000000000000000000000000000000000000
|
2018-05-29 06:03:41 +02:00
|
|
|
MerkleRoot: genesisMerkleRoot, // b8211c82c3d15bcd78bba57005b86fed515149a53a425eb592c07af99fe559cc
|
|
|
|
ClaimTrie: genesisClaimTrie, // 0000000000000000000000000000000000000000000000000000000000000001
|
|
|
|
Timestamp: time.Unix(1446058291, 0), // 28 Oct 2015 18:51:31 +0000 UTC
|
|
|
|
Bits: 0x1f00ffff, // 486604799 [00000000ffff0000000000000000000000000000000000000000000000000000]
|
|
|
|
Nonce: 0x00000507, // 1287
|
2014-05-28 07:23:10 +02:00
|
|
|
},
|
2015-02-05 19:58:30 +01:00
|
|
|
Transactions: []*wire.MsgTx{&genesisCoinbaseTx},
|
2014-05-28 07:23:10 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// regTestGenesisMerkleRoot is the hash of the first transaction in the genesis
|
|
|
|
// block for the regression test network. It is the same as the merkle root for
|
|
|
|
// the main network.
|
|
|
|
var regTestGenesisMerkleRoot = genesisMerkleRoot
|
|
|
|
|
|
|
|
// regTestGenesisBlock defines the genesis block of the block chain which serves
|
|
|
|
// as the public transaction ledger for the regression test network.
|
2015-02-05 19:58:30 +01:00
|
|
|
var regTestGenesisBlock = wire.MsgBlock{
|
|
|
|
Header: wire.BlockHeader{
|
2014-05-28 07:23:10 +02:00
|
|
|
Version: 1,
|
2016-08-08 21:04:33 +02:00
|
|
|
PrevBlock: chainhash.Hash{}, // 0000000000000000000000000000000000000000000000000000000000000000
|
2018-05-29 06:03:41 +02:00
|
|
|
MerkleRoot: regTestGenesisMerkleRoot, // b8211c82c3d15bcd78bba57005b86fed515149a53a425eb592c07af99fe559cc
|
|
|
|
ClaimTrie: genesisClaimTrie, // 0000000000000000000000000000000000000000000000000000000000000001
|
|
|
|
Timestamp: time.Unix(1446058291, 0), // 28 Oct 2015 18:51:31 +0000 UTC
|
2014-05-28 07:23:10 +02:00
|
|
|
Bits: 0x207fffff, // 545259519 [7fffff0000000000000000000000000000000000000000000000000000000000]
|
2018-05-29 06:03:41 +02:00
|
|
|
Nonce: 1,
|
2014-05-28 07:23:10 +02:00
|
|
|
},
|
2015-02-05 19:58:30 +01:00
|
|
|
Transactions: []*wire.MsgTx{&genesisCoinbaseTx},
|
2014-05-28 07:23:10 +02:00
|
|
|
}
|
|
|
|
|
2021-08-19 20:41:48 +02:00
|
|
|
// regTestGenesisHash is the hash of the first block in the block chain for the
|
|
|
|
// regression test network (genesis block).
|
|
|
|
var regTestGenesisHash = regTestGenesisBlock.BlockHash()
|
2014-05-28 07:23:10 +02:00
|
|
|
|
|
|
|
// testNet3GenesisMerkleRoot is the hash of the first transaction in the genesis
|
|
|
|
// block for the test network (version 3). It is the same as the merkle root
|
|
|
|
// for the main network.
|
|
|
|
var testNet3GenesisMerkleRoot = genesisMerkleRoot
|
|
|
|
|
|
|
|
// testNet3GenesisBlock defines the genesis block of the block chain which
|
|
|
|
// serves as the public transaction ledger for the test network (version 3).
|
2015-02-05 19:58:30 +01:00
|
|
|
var testNet3GenesisBlock = wire.MsgBlock{
|
|
|
|
Header: wire.BlockHeader{
|
2014-05-28 07:23:10 +02:00
|
|
|
Version: 1,
|
2016-08-08 21:04:33 +02:00
|
|
|
PrevBlock: chainhash.Hash{}, // 0000000000000000000000000000000000000000000000000000000000000000
|
2018-05-29 06:03:41 +02:00
|
|
|
MerkleRoot: testNet3GenesisMerkleRoot, // b8211c82c3d15bcd78bba57005b86fed515149a53a425eb592c07af99fe559cc
|
|
|
|
ClaimTrie: genesisClaimTrie, // 0000000000000000000000000000000000000000000000000000000000000001
|
|
|
|
Timestamp: time.Unix(1446058291, 0), // 28 Oct 2015 18:51:31 +0000 UTC
|
|
|
|
Bits: 0x1f00ffff, // 486604799 [00000000ffff0000000000000000000000000000000000000000000000000000]
|
|
|
|
Nonce: 0x00000507, // 1287
|
2014-05-28 07:23:10 +02:00
|
|
|
},
|
2015-02-05 19:58:30 +01:00
|
|
|
Transactions: []*wire.MsgTx{&genesisCoinbaseTx},
|
2014-05-28 07:23:10 +02:00
|
|
|
}
|
2014-05-28 08:46:13 +02:00
|
|
|
|
2021-08-19 20:41:48 +02:00
|
|
|
// testNet3GenesisHash is the hash of the first block in the block chain for the
|
|
|
|
// test network (version 3).
|
|
|
|
var testNet3GenesisHash = testNet3GenesisBlock.BlockHash()
|
2014-05-28 08:46:13 +02:00
|
|
|
|
|
|
|
// simNetGenesisMerkleRoot is the hash of the first transaction in the genesis
|
|
|
|
// block for the simulation test network. It is the same as the merkle root for
|
|
|
|
// the main network.
|
|
|
|
var simNetGenesisMerkleRoot = genesisMerkleRoot
|
|
|
|
|
|
|
|
// simNetGenesisBlock defines the genesis block of the block chain which serves
|
|
|
|
// as the public transaction ledger for the simulation test network.
|
2015-02-05 19:58:30 +01:00
|
|
|
var simNetGenesisBlock = wire.MsgBlock{
|
|
|
|
Header: wire.BlockHeader{
|
2014-05-28 08:46:13 +02:00
|
|
|
Version: 1,
|
2016-08-08 21:04:33 +02:00
|
|
|
PrevBlock: chainhash.Hash{}, // 0000000000000000000000000000000000000000000000000000000000000000
|
2014-05-28 08:46:13 +02:00
|
|
|
MerkleRoot: simNetGenesisMerkleRoot, // 4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b
|
|
|
|
Timestamp: time.Unix(1401292357, 0), // 2014-05-28 15:52:37 +0000 UTC
|
|
|
|
Bits: 0x207fffff, // 545259519 [7fffff0000000000000000000000000000000000000000000000000000000000]
|
|
|
|
Nonce: 2,
|
|
|
|
},
|
2015-02-05 19:58:30 +01:00
|
|
|
Transactions: []*wire.MsgTx{&genesisCoinbaseTx},
|
2014-05-28 08:46:13 +02:00
|
|
|
}
|
2020-12-24 16:51:59 +01:00
|
|
|
|
2021-08-19 20:41:48 +02:00
|
|
|
// simNetGenesisHash is the hash of the first block in the block chain for the
|
|
|
|
// simulation test network.
|
|
|
|
var simNetGenesisHash = simNetGenesisBlock.BlockHash()
|
2020-12-24 16:51:59 +01:00
|
|
|
|
|
|
|
// sigNetGenesisMerkleRoot is the hash of the first transaction in the genesis
|
|
|
|
// block for the signet test network. It is the same as the merkle root for
|
|
|
|
// the main network.
|
|
|
|
var sigNetGenesisMerkleRoot = genesisMerkleRoot
|
|
|
|
|
|
|
|
// sigNetGenesisBlock defines the genesis block of the block chain which serves
|
|
|
|
// as the public transaction ledger for the signet test network.
|
|
|
|
var sigNetGenesisBlock = wire.MsgBlock{
|
|
|
|
Header: wire.BlockHeader{
|
|
|
|
Version: 1,
|
|
|
|
PrevBlock: chainhash.Hash{}, // 0000000000000000000000000000000000000000000000000000000000000000
|
|
|
|
MerkleRoot: sigNetGenesisMerkleRoot, // 4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b
|
|
|
|
Timestamp: time.Unix(1598918400, 0), // 2020-09-01 00:00:00 +0000 UTC
|
|
|
|
Bits: 0x1e0377ae, // 503543726 [00000377ae000000000000000000000000000000000000000000000000000000]
|
|
|
|
Nonce: 52613770,
|
|
|
|
},
|
|
|
|
Transactions: []*wire.MsgTx{&genesisCoinbaseTx},
|
|
|
|
}
|
2021-08-19 20:41:48 +02:00
|
|
|
|
|
|
|
// sigNetGenesisHash is the hash of the first block in the block chain for the
|
|
|
|
// signet test network.
|
|
|
|
var sigNetGenesisHash = sigNetGenesisBlock.BlockHash()
|