mirror of
https://github.com/wownero/wowlet.git
synced 2026-11-19 14:44:08 +01:00
TransactionInfo: fix balance delta for incoming txs
This commit is contained in:
@@ -28,7 +28,13 @@ bool TransactionInfo::isCoinbase() const
|
||||
|
||||
quint64 TransactionInfo::balanceDelta() const
|
||||
{
|
||||
return m_amount + m_fee;
|
||||
if (m_direction == Direction_In) {
|
||||
return m_amount;
|
||||
}
|
||||
else if (m_direction == Direction_Out) {
|
||||
return m_amount + m_fee;
|
||||
}
|
||||
return m_amount;
|
||||
}
|
||||
|
||||
double TransactionInfo::amount() const
|
||||
|
||||
Reference in New Issue
Block a user