Commit 98607d8f authored by 33cn's avatar 33cn

Update kvmvcc_mavl.go

parent 03f0d5cd
...@@ -61,7 +61,7 @@ func DisableLog() { ...@@ -61,7 +61,7 @@ func DisableLog() {
func init() { func init() {
drivers.Reg("kvmvccmavl", New) drivers.Reg("kvmvccmavl", New)
types.RegisterDappFork("kvmvccmavl", "ForkKvmvccmavl", types.MaxHeight) types.RegisterDappFork("store-kvmvccmavl", "ForkKvmvccmavl", types.MaxHeight)
} }
// KVmMavlStore provide kvmvcc and mavl store interface implementation // KVmMavlStore provide kvmvcc and mavl store interface implementation
...@@ -137,7 +137,7 @@ func New(cfg *types.Store, sub []byte) queue.Module { ...@@ -137,7 +137,7 @@ func New(cfg *types.Store, sub []byte) queue.Module {
// 查询是否是删除裁剪版mavl // 查询是否是删除裁剪版mavl
isPrunedMavl = isPrunedMavlDB(bs.GetDB()) isPrunedMavl = isPrunedMavlDB(bs.GetDB())
// 读取fork高度 // 读取fork高度
kvmvccMavlFork = types.GetDappFork("kvmvccmavl", "ForkKvmvccmavl") kvmvccMavlFork = types.GetDappFork("store-kvmvccmavl", "ForkKvmvccmavl")
delMavlDataHeight = kvmvccMavlFork + 10000 delMavlDataHeight = kvmvccMavlFork + 10000
bs.SetChild(kvms) bs.SetChild(kvms)
return kvms return kvms
......
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