OSDN Git Service

Adjust wallet code structure (#197)
[bytom/bytom.git] / blockchain / account / reserve.go
index 7d2e554..79ef71f 100755 (executable)
@@ -429,7 +429,7 @@ func findSpecificUTXO(db dbm.DB, outHash bc.Hash) (*utxo, error) {
        }
 
        // make sure accountUTXO existed in the db
-       accountUTXOValue := db.Get(accountUTXOKey(string(outHash.Bytes())))
+       accountUTXOValue := db.Get(UTXOKey(outHash))
        if accountUTXOValue == nil {
                return nil, fmt.Errorf("can't find utxo: %s", outHash.String())
        }