chainparams: fix order of chain hashes.

See https://github.com/lightningnetwork/lightning-rfc/issues/237

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell 2017-09-05 07:15:33 +09:30 committed by Christian Decker
parent 4e81d2431b
commit 56d89b02c7

View File

@ -6,11 +6,7 @@
const struct chainparams networks[] = {
{.index = 0,
.network_name = "bitcoin",
.genesis_blockhash = {{.u.u8 = {0x00, 0x00, 0x00, 0x00, 0x00, 0x19, 0xd6,
0x68, 0x9c, 0x08, 0x5a, 0xe1, 0x65, 0x83,
0x1e, 0x93, 0x4f, 0xf7, 0x63, 0xae, 0x46,
0xa2, 0xa6, 0xc1, 0x72, 0xb3, 0xf1, 0xb6,
0x0a, 0x8c, 0xe2, 0x6f}}},
.genesis_blockhash = {{.u.u8 = {0x6f, 0xe2, 0x8c, 0x0a, 0xb6, 0xf1, 0xb3, 0x72, 0xc1, 0xa6, 0xa2, 0x46, 0xae, 0x63, 0xf7, 0x4f, 0x93, 0x1e, 0x83, 0x65, 0xe1, 0x5a, 0x08, 0x9c, 0x68, 0xd6, 0x19, 0x00, 0x00, 0x00, 0x00, 0x00}}},
.rpc_port = 8332,
.cli = "bitcoin-cli",
.cli_args = NULL,
@ -18,11 +14,7 @@ const struct chainparams networks[] = {
.testnet = false},
{.index = 1,
.network_name = "regtest",
.genesis_blockhash = {{.u.u8 = {0x0f, 0x91, 0x88, 0xf1, 0x3c, 0xb7, 0xb2,
0xc7, 0x1f, 0x2a, 0x33, 0x5e, 0x3a, 0x4f,
0xc3, 0x28, 0xbf, 0x5b, 0xeb, 0x43, 0x60,
0x12, 0xaf, 0xca, 0x59, 0x0b, 0x1a, 0x11,
0x46, 0x6e, 0x22, 0x06}}},
.genesis_blockhash = {{.u.u8 = {0x06, 0x22, 0x6e, 0x46, 0x11, 0x1a, 0x0b, 0x59, 0xca, 0xaf, 0x12, 0x60, 0x43, 0xeb, 0x5b, 0xbf, 0x28, 0xc3, 0x4f, 0x3a, 0x5e, 0x33, 0x2a, 0x1f, 0xc7, 0xb2, 0xb7, 0x3c, 0xf1, 0x88, 0x91, 0x0f}}},
.rpc_port = 18332,
.cli = "bitcoin-cli",
.cli_args = "-regtest",
@ -30,11 +22,7 @@ const struct chainparams networks[] = {
.testnet = true},
{.index = 2,
.network_name = "testnet",
.genesis_blockhash = {{.u.u8 = {0x00, 0x00, 0x00, 0x00, 0x09, 0x33, 0xea,
0x01, 0xad, 0x0e, 0xe9, 0x84, 0x20, 0x97,
0x79, 0xba, 0xae, 0xc3, 0xce, 0xd9, 0x0f,
0xa3, 0xf4, 0x08, 0x71, 0x95, 0x26, 0xf8,
0xd7, 0x7f, 0x49, 0x43}}},
.genesis_blockhash = {{.u.u8 = {0x43, 0x49, 0x7f, 0xd7, 0xf8, 0x26, 0x95, 0x71, 0x08, 0xf4, 0xa3, 0x0f, 0xd9, 0xce, 0xc3, 0xae, 0xba, 0x79, 0x97, 0x20, 0x84, 0xe9, 0x0e, 0xad, 0x01, 0xea, 0x33, 0x09, 0x00, 0x00, 0x00, 0x00}}},
.rpc_port = 18332,
.cli = "bitcoin-cli",
.cli_args = "-testnet",
@ -42,11 +30,7 @@ const struct chainparams networks[] = {
.testnet = true},
{.index = 3,
.network_name = "litecoin",
.genesis_blockhash = {{.u.u8 = {0x12, 0xa7, 0x65, 0xe3, 0x1f, 0xfd, 0x40,
0x59, 0xba, 0xda, 0x1e, 0x25, 0x19, 0x0f,
0x6e, 0x98, 0xc9, 0x9d, 0x97, 0x14, 0xd3,
0x34, 0xef, 0xa4, 0x1a, 0x19, 0x5a, 0x7e,
0x7e, 0x04, 0xbf, 0xe2}}},
.genesis_blockhash = {{.u.u8 = {0xe2, 0xbf, 0x04, 0x7e, 0x7e, 0x5a, 0x19, 0x1a, 0xa4, 0xef, 0x34, 0xd3, 0x14, 0x97, 0x9d, 0xc9, 0x98, 0x6e, 0x0f, 0x19, 0x25, 0x1e, 0xda, 0xba, 0x59, 0x40, 0xfd, 0x1f, 0xe3, 0x65, 0xa7, 0x12 }}},
.rpc_port = 18332,
.cli = "litecoin-cli",
.cli_args = "",