OSDN Git Service

update
authorChengcheng Zhang <943420582@qq.com>
Sun, 23 Jun 2019 17:34:23 +0000 (01:34 +0800)
committerChengcheng Zhang <943420582@qq.com>
Sun, 23 Jun 2019 17:34:23 +0000 (01:34 +0800)
wallet/wallet_store.go

index 5f71fd9..307801f 100644 (file)
@@ -3,7 +3,6 @@ package wallet
 import (
        "encoding/json"
 
-       "github.com/vapor/account"
        "github.com/vapor/asset"
        "github.com/vapor/blockchain/query"
        "github.com/vapor/common"
@@ -254,13 +253,13 @@ func (store *WalletStore) DeleteWalletTransactions() {
 // DeleteWalletUTXOs delete all txs in wallet
 func (store *WalletStore) DeleteWalletUTXOs() {
        batch := store.DB.NewBatch()
-       ruIter := store.DB.IteratorPrefix([]byte(account.UTXOPreFix))
+       ruIter := store.DB.IteratorPrefix([]byte(UTXOPrefix))
        defer ruIter.Release()
        for ruIter.Next() {
                batch.Delete(ruIter.Key())
        }
 
-       suIter := store.DB.IteratorPrefix([]byte(account.SUTXOPrefix))
+       suIter := store.DB.IteratorPrefix([]byte(SUTXOPrefix))
        defer suIter.Release()
        for suIter.Next() {
                batch.Delete(suIter.Key())