import (
"github.com/golang/protobuf/proto"
- dbm "github.com/vapor/database/leveldb"
- "github.com/vapor/database/storage"
- "github.com/vapor/errors"
- "github.com/vapor/protocol/bc"
- "github.com/vapor/protocol/state"
+ dbm "github.com/bytom/vapor/database/leveldb"
+ "github.com/bytom/vapor/database/storage"
+ "github.com/bytom/vapor/errors"
+ "github.com/bytom/vapor/protocol/bc"
+ "github.com/bytom/vapor/protocol/state"
)
const utxoPreFix = "UT:"
func saveUtxoView(batch dbm.Batch, view *state.UtxoViewpoint) error {
for key, entry := range view.Entries {
- if (entry.Type == storage.CrosschainUTXOType) && (!entry.Spent) {
+ if entry.Type == storage.CrosschainUTXOType && !entry.Spent {
batch.Delete(calcUtxoKey(&key))
continue
}
- if (entry.Type == storage.NormalUTXOType || entry.Type == storage.VoteUTXOType) && (entry.Spent) {
+ if entry.Type == storage.NormalUTXOType && entry.Spent {
batch.Delete(calcUtxoKey(&key))
continue
}