OSDN Git Service

modify data dir
[bytom/bytom.git] / config / genesis_test.go
index 22dee5a..cb4f3a2 100644 (file)
@@ -3,6 +3,7 @@ package config
 import (
        "testing"
 
+       "github.com/bytom/consensus"
        "github.com/bytom/consensus/difficulty"
 )
 
@@ -18,7 +19,7 @@ func TestGenerateGenesisBlock(t *testing.T) {
        nonce := block.Nonce
        for {
                hash := block.Hash()
-               if difficulty.CheckProofOfWork(&hash, &block.PreviousBlockHash, block.Bits) {
+               if difficulty.CheckProofOfWork(&hash, consensus.InitialSeed, block.Bits) {
                        break
                }
                block.Nonce++