OSDN Git Service

new repo
[bytom/vapor.git] / config / genesis_test.go
1 package config
2
3 /*func TestGenerateGenesisBlock(t *testing.T) {
4         block := GenerateGenesisBlock()
5         nonce := block.Nonce
6         for {
7                 hash := block.Hash()
8                 if difficulty.CheckProofOfWork(&hash, consensus.InitialSeed, block.Bits) {
9                         break
10                 }
11                 block.Nonce++
12         }
13         if block.Nonce != nonce {
14                 t.Errorf("correct nonce is %d, but get %d", block.Nonce, nonce)
15         }
16 }*/