Skip to content

Commit

Permalink
UI: Revert STO modification to txhistory
Browse files Browse the repository at this point in the history
  • Loading branch information
zathras-crypto committed Jun 22, 2015
1 parent dc61e0c commit bbb537c
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/qt/txhistorydialog.cpp
Expand Up @@ -374,19 +374,6 @@ int TXHistoryDialog::PopulateHistoryMap()
if ((displayType == "Send") && (!IsMyAddress(senderAddress))) { displayType = "Receive"; } // still a send transaction, but avoid confusion for end users
if (!valid) fundsMoved = false; // funds never move in invalid txs

// override amount display for STO receipts
if (mp_obj.getType() == MSC_TYPE_SEND_TO_OWNERS) {
Array receiveArray;
uint64_t total = 0, stoFee = 0;
s_stolistdb->getRecipients(hash, "", &receiveArray, &total, &stoFee);
if (receiveArray.size()>1) displayAddress = "Multiple addresses"; // override display address if more than one address in the wallet received a cut of this STO
if (isPropertyDivisible(propertyId)) {
displayAmount = FormatDivisibleShortMP(total) + getTokenLabel(propertyId);
} else {
displayAmount = FormatIndivisibleMP(total) + getTokenLabel(propertyId);
}
}

// override/hide display amount for invalid creates and unknown transactions as we can't display amount/property as no prop exists
if ((mp_obj.getType() == MSC_TYPE_CREATE_PROPERTY_FIXED) ||
(mp_obj.getType() == MSC_TYPE_CREATE_PROPERTY_VARIABLE) ||
Expand Down

0 comments on commit bbb537c

Please sign in to comment.