mirror of
https://github.com/feather-wallet/feather.git
synced 2024-12-23 03:59:29 +00:00
TransactionInfo: fix balance delta for incoming txs
This commit is contained in:
parent
e512e539b6
commit
3721665ea6
1 changed files with 7 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue