Use a typedef for monetary values

This commit is contained in:
Mark Friedenbach
2014-04-22 15:46:19 -07:00
committed by Mark Friedenbach
parent 64cfaf891f
commit a372168e77
62 changed files with 397 additions and 356 deletions

View File

@@ -31,19 +31,19 @@ CWalletTx *WalletModelTransaction::getTransaction()
return walletTransaction;
}
qint64 WalletModelTransaction::getTransactionFee()
CAmount WalletModelTransaction::getTransactionFee()
{
return fee;
}
void WalletModelTransaction::setTransactionFee(qint64 newFee)
void WalletModelTransaction::setTransactionFee(const CAmount& newFee)
{
fee = newFee;
}
qint64 WalletModelTransaction::getTotalTransactionAmount()
CAmount WalletModelTransaction::getTotalTransactionAmount()
{
qint64 totalTransactionAmount = 0;
CAmount totalTransactionAmount = 0;
foreach(const SendCoinsRecipient &rcp, recipients)
{
totalTransactionAmount += rcp.amount;