add prune kvmvcc
@@ -13,14 +13,15 @@ import (
"fmt"
+ "bytes"
+
"github.com/33cn/chain33/account"
"github.com/33cn/chain33/common"
+ dbm "github.com/33cn/chain33/common/db"
drivers "github.com/33cn/chain33/system/store"
"github.com/33cn/chain33/types"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
- dbm "github.com/33cn/chain33/common/db"
- "bytes"
)
const MaxKeylenth int = 64
@@ -541,7 +542,6 @@ func TestDelMavlData(t *testing.T) {
require.NoError(t, err)
}
-
func TestPruning(t *testing.T) {
dir, err := ioutil.TempDir("", "example")
assert.Nil(t, err)
@@ -551,7 +551,6 @@ func TestPruning(t *testing.T) {
store := New(storeCfg, nil).(*KVmMavlStore)
assert.NotNil(t, store)
-
kvmvccStore := NewKVMVCC(&subKVMVCCConfig{}, store.GetDB())
SetPruneHeight(10)
