Commit fbb4f355 authored by harrylee2015's avatar harrylee2015 Committed by vipwzw

fix a bug for storage

parent 99eaabec
...@@ -88,4 +88,7 @@ message BatchQueryStorage { ...@@ -88,4 +88,7 @@ message BatchQueryStorage {
message BatchReplyStorage { message BatchReplyStorage {
repeated Storage storages = 1; repeated Storage storages = 1;
} }
\ No newline at end of file
message ReceiptStorage {
}
...@@ -2,6 +2,8 @@ package types ...@@ -2,6 +2,8 @@ package types
import ( import (
"github.com/33cn/chain33/types" "github.com/33cn/chain33/types"
"reflect"
) )
/* /*
...@@ -52,9 +54,12 @@ var ( ...@@ -52,9 +54,12 @@ var (
} }
//定义log的id和具体log类型及名称,填入具体自定义log类型 //定义log的id和具体log类型及名称,填入具体自定义log类型
logMap = map[int64]*types.LogInfo{ logMap = map[int64]*types.LogInfo{
//LogID: {Ty: reflect.TypeOf(LogStruct), Name: LogName}, TyContentStorageLog: {Ty: reflect.TypeOf(ReceiptStorage{}),Name: "LogContentStorage"},
TyHashStorageLog: {Ty: reflect.TypeOf(ReceiptStorage{}),Name: "LogHashStorage"},
TyLinkStorageLog: {Ty: reflect.TypeOf(ReceiptStorage{}),Name: "LogLinkStorage"},
TyEncryptStorageLog: {Ty: reflect.TypeOf(ReceiptStorage{}),Name: "LogEncryptStorage"},
TyEncryptShareStorageLog: {Ty: reflect.TypeOf(ReceiptStorage{}),Name: "LogEncryptShareStorage"},
} }
//tlog = log.New("module", "storage.types")
) )
// init defines a register function // init defines a register function
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment