Repository: kaspanet/kaspad
Pull request #1808 (2021-07-29 06:18:49)

Update testnet version to testnet-6

codecov[bot]: # [Codecov](https://codecov.io/gh/kaspanet/kaspad/pull/1808?src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=kaspanet) Report
> Merging [#1808](https://codecov.io/gh/kaspanet/kaspad/pull/1808?src=pr&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=kaspanet) (c3ef223) into [v0.11.0-dev](https://codecov.io/gh/kaspanet/kaspad/commit/f26a7fdedf8625024a602ce39027c3aa4b5896d5?el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=kaspanet) (f26a7fd) will **increase** coverage by `0.04%`.
> The diff coverage is `n/a`.

[![Impacted file tree graph](https://codecov.io/gh/kaspanet/kaspad/pull/1808/graphs/tree.svg?width=650&height=150&src=pr&token=2FBIEEJTNU&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=kaspanet)](https://codecov.io/gh/kaspanet/kaspad/pull/1808?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=kaspanet)

```diff
@@               Coverage Diff               @@
##           v0.11.0-dev    #1808      +/-   ##
===============================================
+ Coverage        61.67%   61.71%   +0.04%     
===============================================
  Files              612      612              
  Lines            27496    27496              
===============================================
+ Hits             16957    16968      +11     
+ Misses            8188     8181       -7     
+ Partials          2351     2347       -4     
```


| [Impacted Files](https://codecov.io/gh/kaspanet/kaspad/pull/1808?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=kaspanet) | Coverage Δ | |
|---|---|---|
| [domain/dagconfig/params.go](https://codecov.io/gh/kaspanet/kaspad/pull/1808/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=kaspanet#diff-ZG9tYWluL2RhZ2NvbmZpZy9wYXJhbXMuZ28=) | `88.88% <ø> (ø)` | |
| [app/protocol/flows/blockrelay/handle\_relay\_invs.go](https://codecov.io/gh/kaspanet/kaspad/pull/1808/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=kaspanet#diff-YXBwL3Byb3RvY29sL2Zsb3dzL2Jsb2NrcmVsYXkvaGFuZGxlX3JlbGF5X2ludnMuZ28=) | `58.04% <0.00%> (+1.14%)` | :arrow_up: |
| [infrastructure/network/addressmanager/store.go](https://codecov.io/gh/kaspanet/kaspad/pull/1808/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=kaspanet#diff-aW5mcmFzdHJ1Y3R1cmUvbmV0d29yay9hZGRyZXNzbWFuYWdlci9zdG9yZS5nbw==) | `79.11% <0.00%> (+1.26%)` | :arrow_up: |
| [infrastructure/network/netadapter/router/route.go](https://codecov.io/gh/kaspanet/kaspad/pull/1808/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=kaspanet#diff-aW5mcmFzdHJ1Y3R1cmUvbmV0d29yay9uZXRhZGFwdGVyL3JvdXRlci9yb3V0ZS5nbw==) | `88.57% <0.00%> (+5.71%)` | :arrow_up: |
| [...k/netadapter/server/grpcserver/connection\_loops.go](https://codecov.io/gh/kaspanet/kaspad/pull/1808/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=kaspanet#diff-aW5mcmFzdHJ1Y3R1cmUvbmV0d29yay9uZXRhZGFwdGVyL3NlcnZlci9ncnBjc2VydmVyL2Nvbm5lY3Rpb25fbG9vcHMuZ28=) | `65.51% <0.00%> (+8.62%)` | :arrow_up: |

------

[Continue to review full report at Codecov](https://codecov.io/gh/kaspanet/kaspad/pull/1808?src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=kaspanet).
> **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=kaspanet)
> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
> Powered by [Codecov](https://codecov.io/gh/kaspanet/kaspad/pull/1808?src=pr&el=footer&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=kaspanet). Last update [f26a7fd...c3ef223](https://codecov.io/gh/kaspanet/kaspad/pull/1808?src=pr&el=lastupdated&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=kaspanet). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=kaspanet).


Patch:
diff --git a/domain/dagconfig/genesis.go b/domain/dagconfig/genesis.go
index be8c12b1..38accbc8 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{
-	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,
+	0xa0, 0xef, 0xc3, 0x0b, 0x5e, 0x19, 0x71, 0x1b,
+	0xe2, 0x62, 0xa3, 0x98, 0x0f, 0xdf, 0xb8, 0x99,
+	0x28, 0xb6, 0x86, 0x88, 0xff, 0xde, 0x78, 0x69,
+	0xe8, 0xdd, 0x75, 0x2a, 0xbf, 0xc1, 0x70, 0xda,
 })
 
 // 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()),
-		0x178547bee50,
+		0x17a56662e7d,
 		0x1e7fffff,
-		0x2de70,
+		0x4c933,
 	),
 	Transactions: []*externalapi.DomainTransaction{testnetGenesisCoinbaseTx},
 }
diff --git a/domain/dagconfig/params.go b/domain/dagconfig/params.go
index bf98afe0..65544cf8 100644
--- a/domain/dagconfig/params.go
+++ b/domain/dagconfig/params.go
@@ -250,11 +250,11 @@ var MainnetParams = Params{
 // TestnetParams defines the network parameters for the test Kaspa network.
 var TestnetParams = Params{
 	K:           defaultGHOSTDAGK,
-	Name:        "kaspa-testnet-5",
+	Name:        "kaspa-testnet-6",
 	Net:         appmessage.Testnet,
 	RPCPort:     "16210",
 	DefaultPort: "16211",
-	DNSSeeds:    []string{"testnet-5-dnsseed.daglabs-dev.com"},
+	DNSSeeds:    []string{"testnet-6-dnsseed.daglabs-dev.com"},
 
 	// DAG parameters
 	GenesisBlock:                   &testnetGenesisBlock,


Test patch:
diff --git a/domain/consensus/processes/pruningmanager/pruning_test.go b/domain/consensus/processes/pruningmanager/pruning_test.go
index 5115cc63..59928fe3 100644
--- a/domain/consensus/processes/pruningmanager/pruning_test.go
+++ b/domain/consensus/processes/pruningmanager/pruning_test.go
@@ -36,7 +36,7 @@ func TestPruning(t *testing.T) {
 		},
 		"dag-for-test-pruning.json": {
 			dagconfig.MainnetParams.Name: "503",
-			dagconfig.TestnetParams.Name: "502",
+			dagconfig.TestnetParams.Name: "503",
 			dagconfig.DevnetParams.Name:  "503",
 			dagconfig.SimnetParams.Name:  "502",
 		},