X-Git-Url: http://git.osdn.net/view?p=bytom%2Fvapor.git;a=blobdiff_plain;f=protocol%2Fblock_test.go;h=6fcece86a6c4e38894575175b2018a38dd77047b;hp=4e668eacb04deb27122f7a827cd79b17c2cd3428;hb=85d69b6527ed724f0785e180db12230b71f2e2a9;hpb=04e99309457c70c11b0538e38b6a0b68d5b64a87 diff --git a/protocol/block_test.go b/protocol/block_test.go index 4e668eac..6fcece86 100644 --- a/protocol/block_test.go +++ b/protocol/block_test.go @@ -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 {