Revert "return asset label in listunspent if set"

This commit is contained in:
Gregory Sanders 2017-03-30 09:48:48 -04:00
parent dc53febc4b
commit 3407da5210

View file

@ -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)));
}