OSDN Git Service

update log
[bytom/vapor.git] / database / wallet_store.go
index 85eb2e1..b810e46 100644 (file)
@@ -246,7 +246,7 @@ func (store *WalletStore) GetGlobalTransactionIndex(txID string) []byte {
 func (store *WalletStore) GetStandardUTXO(outid bc.Hash) (*acc.UTXO, error) {
        rawUTXO := store.db.Get(StandardUTXOKey(outid))
        if rawUTXO == nil {
-               return nil, fmt.Errorf("failed get standard UTXO, outputID: %s ", outid.String())
+               return nil, wallet.ErrGetStandardUTXO
        }
 
        UTXO := new(acc.UTXO)