Commit fb7d2720 authored by liuyuhang's avatar liuyuhang Committed by 33cn

add para.toml enableMVCCPrune config

parent e61c7a8f
......@@ -71,6 +71,7 @@ func NewKVMVCC(sub *subKVMVCCConfig, db dbm.DB) *KVMVCCStore {
kvs = &KVMVCCStore{db, dbm.NewMVCC(db), make(map[string][]*types.KeyValue),
false, sub.EnableMVCCPrune, sub.PruneHeight, false}
}
EnablePrune(sub.EnableMVCCPrune)
SetPruneHeight(int(sub.PruneHeight))
return kvs
......
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