mirror of
https://github.com/feather-wallet/feather.git
synced 2024-12-23 12:09:50 +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,8 +28,14 @@ bool TransactionInfo::isCoinbase() const
|
||||||
|
|
||||||
quint64 TransactionInfo::balanceDelta() const
|
quint64 TransactionInfo::balanceDelta() const
|
||||||
{
|
{
|
||||||
|
if (m_direction == Direction_In) {
|
||||||
|
return m_amount;
|
||||||
|
}
|
||||||
|
else if (m_direction == Direction_Out) {
|
||||||
return m_amount + m_fee;
|
return m_amount + m_fee;
|
||||||
}
|
}
|
||||||
|
return m_amount;
|
||||||
|
}
|
||||||
|
|
||||||
double TransactionInfo::amount() const
|
double TransactionInfo::amount() const
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue