message: Fixed generated transaction view
diff: @@ -42,23 +42,16 @@ QList<TransactionRecord> TransactionRecord::decomposeTransaction(const CWallet *
  uint256 hash = wtx.GetHash();
  std::map<std::string, std::string> mapValue = wtx.mapValue;
  - if (nNet > 0 || wtx.IsCoinBase() ||
  - wtx.IsZerocoinSpend() || wtx.IsZerocoinSpendV3())
  + if(wtx.IsZerocoinSpend() || wtx.IsZerocoinSpendV3())
  {
  - //
  - // Credit
  - //
  BOOST_FOREACH(const CTxOut& txout, wtx.vout)
  {
  isminetype mine = wallet->IsMine(txout);
  TransactionRecord sub(hash, nTime);
  CTxDestination address;
  - sub.idx = parts.size(); // sequence number
  sub.credit = txout.nValue;
  - if(wtx.IsZerocoinSpend() || wtx.IsZerocoinSpendV3())
  - {
  if (mine)
  {
  sub.involvesWatchAddress = mine & ISMINE_WATCH_ONLY;
  @@ -74,10 +67,25 @@ QList<TransactionRecord> TransactionRecord::decomposeTransaction(const CWallet *
  sub.type = TransactionRecord::SpendToAddress;
  sub.address = CBitcoinAddress(address).ToString();
  }
  + parts.append(sub);
  + }
  }
  - else if(mine)
  + else if (nNet > 0 || wtx.IsCoinBase())
  + {
  + //
  + // Credit
  + //
  + BOOST_FOREACH(const CTxOut& txout, wtx.vout)
  + {
  + isminetype mine = wallet->IsMine(txout);
  + if (mine)
  {
  + TransactionRecord sub(hash, nTime);
  + CTxDestination address;
  + sub.idx = parts.size(); // sequence number
  + sub.credit = txout.nValue;
  sub.involvesWatchAddress = mine & ISMINE_WATCH_ONLY;
  +
  if(ExtractDestination(txout.scriptPubKey, address) && IsMine(*wallet, address))
  {
  // Received by Bitcoin Address
  @@ -95,10 +103,10 @@ QList<TransactionRecord> TransactionRecord::decomposeTransaction(const CWallet *
  // Generated
  sub.type = TransactionRecord::Generated;
  }
  - }
  parts.append(sub);
  }
  }
  + }
  else
  {
  bool involvesWatchAddress = false;
  