Skip to content

Commit

Permalink
Pass stability tests with AstroBWTv3
Browse files Browse the repository at this point in the history
  • Loading branch information
0xA001113 committed Apr 29, 2024
1 parent e0a6ba2 commit 9096fc6
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ func TestDifficulty(t *testing.T) {
case dagconfig.TestnetParams.Name:
expectedBits = uint32(0x1e7f007a)
case dagconfig.DevnetParams.Name:
expectedBits = uint32(0x1f4e54ab)
expectedBits = uint32(0x203f12d3)
case dagconfig.MainnetParams.Name:
expectedBits = uint32(0x2001f2ab)
}
Expand Down
2 changes: 1 addition & 1 deletion domain/consensus/processes/pruningmanager/pruning_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func TestPruning(t *testing.T) {
"dag-for-test-pruning.json": {
dagconfig.MainnetParams.Name: "503",
dagconfig.TestnetParams.Name: "503",
dagconfig.DevnetParams.Name: "503",
dagconfig.DevnetParams.Name: "502",
dagconfig.SimnetParams.Name: "502",
},
}
Expand Down
10 changes: 5 additions & 5 deletions domain/dagconfig/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,10 @@ var devnetGenesisCoinbaseTx = transactionhelper.NewSubnetworkTransaction(0,
// devGenesisHash is the hash of the first block in the block DAG for the development
// network (genesis block).
var devnetGenesisHash = externalapi.NewDomainHashFromByteArray(&[externalapi.DomainHashSize]byte{
0xAB, 0x08, 0x47, 0x48, 0x55, 0x48, 0xA7, 0x1D,
0x8B, 0xE4, 0xCF, 0x22, 0x68, 0x2F, 0x96, 0xF2,
0x71, 0x06, 0x8D, 0x46, 0xCB, 0x00, 0x17, 0xE5,
0x61, 0x3E, 0x5F, 0x54, 0x01, 0xAC, 0x35, 0x0B,
0x6C, 0x34, 0x89, 0xBF, 0xB5, 0x92, 0xCA, 0x0A,
0x0C, 0x12, 0xED, 0xB7, 0xAD, 0x86, 0x2D, 0x62,
0x27, 0x92, 0x3E, 0xC2, 0xD2, 0x77, 0x7E, 0x0D,
0xFD, 0x93, 0xF3, 0xC5, 0xB8, 0xA5, 0x5C, 0x35,
})

// devnetGenesisMerkleRoot is the hash of the first transaction in the genesis block
Expand All @@ -113,7 +113,7 @@ var devnetGenesisBlock = externalapi.DomainBlock{
&externalapi.DomainHash{},
externalapi.NewDomainHashFromByteArray(muhash.EmptyMuHashHash.AsArray()),
1713884849877,
525264379, // Prime number
541034453, // Prime number
241421, // Silver ratio
0,
0,
Expand Down
2 changes: 1 addition & 1 deletion util/difficulty/difficulty_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ func TestGetHashrateString(t *testing.T) {
var results = map[string]string{
dagconfig.MainnetParams.Name: "130 H/s",
dagconfig.TestnetParams.Name: "131.15 KH/s",
dagconfig.DevnetParams.Name: "830 H/s",
dagconfig.DevnetParams.Name: "4 H/s",
dagconfig.SimnetParams.Name: "2.47 KH/s",
}
testutils.ForAllNets(t, false, func(t *testing.T, consensusConfig *consensus.Config) {
Expand Down

0 comments on commit 9096fc6

Please sign in to comment.