return err
}
if accountID == utxo.AccountID {
- m.store.DeleteUTXO(utxo.OutputID)
+ m.store.DeleteStandardUTXO(utxo.OutputID)
}
}
if err != nil {
t.Error(err)
}
- testDB.Set(database.StandardUTXOKey(u.OutputID), data)
+ c.uk.store.SetStandardUTXO(u.OutputID, data)
}
gotUtxos, immatureAmount := c.uk.findUtxos("testAccount", &bc.AssetID{}, c.useUnconfirmed, c.vote)
}
for _, u := range c.dbUtxos {
- testDB.Delete(database.StandardUTXOKey(u.OutputID))
+ c.uk.store.DeleteStandardUTXO(u.OutputID)
}
}
}
}
for _, u := range c.dbUtxos {
- testDB.Delete(database.StandardUTXOKey(u.OutputID))
+ c.uk.store.DeleteStandardUTXO(u.OutputID)
}
}
}
DeleteBip44ContractIndex(string)
DeleteContractIndex(string)
GetContractIndex(string) []byte
- // DeleteAccountUTXOs(string) error
GetAccountUTXOs(string) [][]byte
- DeleteUTXO(bc.Hash)
+ DeleteStandardUTXO(bc.Hash)
GetCoinbaseArbitrary() []byte
SetCoinbaseArbitrary([]byte)
GetMiningAddress() []byte
return utxos
}
-// DeleteUTXO delete utxo by outpu id
-func (store *AccountStore) DeleteUTXO(outputID bc.Hash) {
+// DeleteStandardUTXO delete utxo by outpu id
+func (store *AccountStore) DeleteStandardUTXO(outputID bc.Hash) {
if store.batch == nil {
store.accountDB.Delete(StandardUTXOKey(outputID))
} else {