Skip to content

Commit

Permalink
Fix GUI to recognize MNReward in v6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Liquid369 committed Mar 12, 2023
1 parent 958a76c commit 8d62932
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/qt/transactionrecord.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,8 @@ bool TransactionRecord::decomposeCreditTransaction(const CWallet* wallet, const
sub.address = getValueOrReturnEmpty(wtx.mapValue, "from");
}
if (wtx.IsCoinBase()) {
// Generated
sub.type = TransactionRecord::Generated;
// Generated or MN Reward in v6.0
sub.type = !Params().GetConsensus().NetworkUpgradeActive(wtx.m_confirm.block_height, Consensus::UPGRADE_V6_0) ? TransactionRecord::Generated : TransactionRecord::MNReward;
}

parts.append(sub);
Expand Down

0 comments on commit 8d62932

Please sign in to comment.