mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-14 12:43:40 +02:00
Revert "return asset label in listunspent if set"
This commit is contained in:
parent
dc53febc4b
commit
3407da5210
1 changed files with 1 additions and 2 deletions
|
|
@ -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)));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue