Browse Source

TransactionInfo: fix balance delta for incoming txs

1.0.0
tobtoht 2 months ago
parent
commit
3721665ea6
Signed by: tobtoht GPG Key ID: 1CADD27F41F45C3C
  1. 8
      src/libwalletqt/TransactionInfo.cpp

8
src/libwalletqt/TransactionInfo.cpp

@ -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…
Cancel
Save