github.com/Bytom/bytom@v1.1.2-0.20210127130405-ae40204c0b09/config/genesis_test.go (about)

     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  }*/