OSDN Git Service

2ffa91fccab8128afc875318ff75fc04627162d5
[bytom/bytom.git] / config / genesis_test.go
1 package config
2
3 import (
4         "testing"
5 )
6
7 // test genesis
8 func TestGenesis(t *testing.T) {
9         if tx := GenerateGenesisTx(); tx == nil {
10                 t.Errorf("Generate genesis tx failed")
11         }
12
13         if block := GenerateGenesisBlock(); block == nil {
14                 t.Errorf("Generate genesis block failed")
15         }
16 }