From 3407da5210e61fecaa39fa5affab65e8aee047f8 Mon Sep 17 00:00:00 2001 From: Gregory Sanders Date: Thu, 30 Mar 2017 09:48:48 -0400 Subject: [PATCH] Revert "return asset label in listunspent if set" --- src/wallet/rpcwallet.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/wallet/rpcwallet.cpp b/src/wallet/rpcwallet.cpp index f6e26cf542..037d10c53b 100644 --- a/src/wallet/rpcwallet.cpp +++ b/src/wallet/rpcwallet.cpp @@ -2759,8 +2759,7 @@ UniValue listunspent(const UniValue& params, bool fHelp) entry.push_back(Pair("scriptPubKey", HexStr(scriptPubKey.begin(), scriptPubKey.end()))); entry.push_back(Pair("amount", ValueFromAmount(nValue))); - const std::string label = gAssetsDir.GetLabel(assetid); - entry.push_back(Pair("asset", (label != "") ? label : assetid.GetHex())); + entry.push_back(Pair("asset", assetid.GetHex())); if (out.tx->vout[out.i].nAsset.IsCommitment()) { entry.push_back(Pair("assetcommitment", HexStr(out.tx->vout[out.i].nAsset.vchCommitment))); }