Commit 934cd0a7 authored by vipwzw's avatar vipwzw

auto ci

parent fbdd7d9f
......@@ -198,7 +198,7 @@ func (t *Ticket) CheckReceiptExecOk() bool {
// 自定义接口,用于删除不再需要保存的kv
// 比如 ticket 已经 close 之后就废弃了,可以删除
func expiredKVChecker(key ,value []byte) bool {
func expiredKVChecker(key, value []byte) bool {
// 由于 ticketBindKeyPrefix 包含了 ticketKeyPrefix,所以需要多做一次检查
if bytes.HasPrefix(key, ticketBindKeyPrefix) {
return false
......
......@@ -500,7 +500,7 @@ func pruneDapp(db dbm.DB, name string, safeHeight int64) {
}
var prefix []byte
prefix = append(prefix, mvccData...)
prefix = append(prefix, "mavl-" + name...)
prefix = append(prefix, "mavl-"+name...)
it := db.Iterator(prefix, nil, true)
defer it.Close()
for it.Rewind(); it.Valid(); it.Next() {
......
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