OSDN Git Service

block integration test (#1738)
[bytom/bytom.git] / database / store_test.go
index f0da5ba..795d248 100644 (file)
@@ -212,7 +212,7 @@ func TestSaveBlock(t *testing.T) {
                t.Errorf("got status:%v, expect status:%v", gotStatus, status)
        }
 
-       data := store.db.Get(calcBlockHeaderKey(block.Height, &blockHash))
+       data := store.db.Get(CalcBlockHeaderKey(block.Height, &blockHash))
        gotBlockHeader := types.BlockHeader{}
        if err := gotBlockHeader.UnmarshalText(data); err != nil {
                t.Fatal(err)