Use a typedef for monetary values
This commit is contained in:
committed by
Mark Friedenbach
parent
64cfaf891f
commit
a372168e77
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user