From 830684167c85b17487941a1a408d0c4e8333400e Mon Sep 17 00:00:00 2001 From: stasatdaglabs <39559713+stasatdaglabs@users.noreply.github.com> Date: Tue, 20 Apr 2021 14:35:41 +0300 Subject: [PATCH] Update the testnet version to testnet-5. (#1683) (cherry picked from commit bf198948c4871792ac6abcbe1cebe0d5d093f541) --- .../processes/dagtraversalmanager/window_test.go | 14 +++++++------- domain/dagconfig/genesis.go | 12 ++++++------ domain/dagconfig/params.go | 4 ++-- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/domain/consensus/processes/dagtraversalmanager/window_test.go b/domain/consensus/processes/dagtraversalmanager/window_test.go index 6faa6a5fa..cd2f37a43 100644 --- a/domain/consensus/processes/dagtraversalmanager/window_test.go +++ b/domain/consensus/processes/dagtraversalmanager/window_test.go @@ -132,37 +132,37 @@ func TestBlockWindow(t *testing.T) { { parents: []string{"H", "F"}, id: "I", - expectedWindow: []string{"F", "D", "H", "C", "G", "B"}, + expectedWindow: []string{"F", "D", "C", "H", "G", "B"}, }, { parents: []string{"I"}, id: "J", - expectedWindow: []string{"I", "F", "D", "H", "C", "G", "B"}, + expectedWindow: []string{"I", "F", "D", "C", "H", "G", "B"}, }, { parents: []string{"J"}, id: "K", - expectedWindow: []string{"J", "I", "F", "D", "H", "C", "G", "B"}, + expectedWindow: []string{"J", "I", "F", "D", "C", "H", "G", "B"}, }, { parents: []string{"K"}, id: "L", - expectedWindow: []string{"K", "J", "I", "F", "D", "H", "C", "G", "B"}, + expectedWindow: []string{"K", "J", "I", "F", "D", "C", "H", "G", "B"}, }, { parents: []string{"L"}, id: "M", - expectedWindow: []string{"L", "K", "J", "I", "F", "D", "H", "C", "G", "B"}, + expectedWindow: []string{"L", "K", "J", "I", "F", "D", "C", "H", "G", "B"}, }, { parents: []string{"M"}, id: "N", - expectedWindow: []string{"M", "L", "K", "J", "I", "F", "D", "H", "C", "G"}, + expectedWindow: []string{"M", "L", "K", "J", "I", "F", "D", "C", "H", "G"}, }, { parents: []string{"N"}, id: "O", - expectedWindow: []string{"N", "M", "L", "K", "J", "I", "F", "D", "H", "C"}, + expectedWindow: []string{"N", "M", "L", "K", "J", "I", "F", "D", "C", "H"}, }, }, dagconfig.DevnetParams.Name: { diff --git a/domain/dagconfig/genesis.go b/domain/dagconfig/genesis.go index 279d3bcfa..be8c12b1c 100644 --- a/domain/dagconfig/genesis.go +++ b/domain/dagconfig/genesis.go @@ -177,10 +177,10 @@ var testnetGenesisCoinbaseTx = transactionhelper.NewSubnetworkTransaction(0, // testnetGenesisHash is the hash of the first block in the block DAG for the test // network (genesis block). var testnetGenesisHash = externalapi.NewDomainHashFromByteArray(&[externalapi.DomainHashSize]byte{ - 0x8f, 0x83, 0xf5, 0x33, 0x77, 0xa4, 0x80, 0xa7, - 0x93, 0xf3, 0x17, 0xee, 0x3e, 0x8f, 0xf5, 0xaf, - 0x16, 0x6d, 0x87, 0x1d, 0x54, 0xfd, 0xe7, 0x79, - 0xa2, 0xab, 0x6f, 0xc3, 0x76, 0x60, 0xc3, 0x64, + 0xac, 0x23, 0xff, 0xc3, 0x85, 0xd3, 0x88, 0x99, + 0xfd, 0xb8, 0x83, 0x30, 0x80, 0x3a, 0x3d, 0xbf, + 0xf7, 0x9b, 0x96, 0x9e, 0x4c, 0xd5, 0x1b, 0xf0, + 0x0e, 0x77, 0xb6, 0x87, 0x70, 0xaa, 0x4e, 0x1f, }) // testnetGenesisMerkleRoot is the hash of the first transaction in the genesis block @@ -201,9 +201,9 @@ var testnetGenesisBlock = externalapi.DomainBlock{ testnetGenesisMerkleRoot, &externalapi.DomainHash{}, externalapi.NewDomainHashFromByteArray(muhash.EmptyMuHashHash.AsArray()), - 0x177bfd44a10, + 0x178547bee50, 0x1e7fffff, - 0x64d74, + 0x2de70, ), Transactions: []*externalapi.DomainTransaction{testnetGenesisCoinbaseTx}, } diff --git a/domain/dagconfig/params.go b/domain/dagconfig/params.go index e1675b4ff..96d886f75 100644 --- a/domain/dagconfig/params.go +++ b/domain/dagconfig/params.go @@ -256,11 +256,11 @@ var MainnetParams = Params{ // TestnetParams defines the network parameters for the test Kaspa network. var TestnetParams = Params{ K: defaultGHOSTDAGK, - Name: "kaspa-testnet-2", + Name: "kaspa-testnet-5", Net: appmessage.Testnet, RPCPort: "16210", DefaultPort: "16211", - DNSSeeds: []string{"testnet-2-dnsseed.daglabs-dev.com"}, + DNSSeeds: []string{"testnet-5-dnsseed.daglabs-dev.com"}, // DAG parameters GenesisBlock: &testnetGenesisBlock,