OSDN Git Service

move interface
[bytom/vapor.git] / account / utxo_keeper.go
index a8a81f7..fc27b7e 100644 (file)
@@ -11,7 +11,6 @@ import (
 
        log "github.com/sirupsen/logrus"
 
-       "github.com/vapor/database"
        "github.com/vapor/errors"
        "github.com/vapor/protocol/bc"
 )
@@ -56,7 +55,7 @@ type utxoKeeper struct {
        // `sync/atomic` expects the first word in an allocated struct to be 64-bit
        // aligned on both ARM and x86-32. See https://goo.gl/zW7dgq for more details.
        nextIndex     uint64
-       store         database.AccountStorer
+       store         AccountStorer
        mtx           sync.RWMutex
        currentHeight func() uint64
 
@@ -65,7 +64,7 @@ type utxoKeeper struct {
        reservations map[uint64]*reservation
 }
 
-func newUtxoKeeper(f func() uint64, store database.AccountStorer) *utxoKeeper {
+func newUtxoKeeper(f func() uint64, store AccountStorer) *utxoKeeper {
        uk := &utxoKeeper{
                store:         store,
                currentHeight: f,