OSDN Git Service

store federation (#83)
[bytom/vapor.git] / protocol / block_test.go
index 4e668ea..6fcece8 100644 (file)
@@ -10,6 +10,7 @@ import (
 )
 
 func TestCalcReorganizeNodes(t *testing.T) {
+       config.CommonConfig = config.DefaultConfig()
        c := &Chain{index: state.NewBlockIndex()}
        header := config.GenesisBlock().BlockHeader
        initNode, err := state.NewBlockNode(&header, nil)
@@ -55,6 +56,7 @@ func TestCalcReorganizeNodes(t *testing.T) {
 }
 
 func TestEdgeCalcReorganizeNodes(t *testing.T) {
+       config.CommonConfig = config.DefaultConfig()
        header := config.GenesisBlock().BlockHeader
        initNode, err := state.NewBlockNode(&header, nil)
        if err != nil {