wallet: Fix -maxtxfee check by moving it to CWallet::CreateTransaction
This commit is contained in:
1 parent
6c21a801f3
commit
5c1b9714cb
4 files changed
+21
-8
No files matched your search
@@ -221,9 +221,12 @@ WalletModel::SendCoinsReturn WalletModel::prepareTransaction(WalletModelTransact
|
||||
return TransactionCreationFailed;
|
||||
}
|
||||
|
||||
// Reject absurdly high fee
|
||||
if (nFeeRequired > m_wallet->getDefaultMaxTxFee())
|
||||
// Reject absurdly high fee. (This can never happen because the
|
||||
// wallet never creates transactions with fee greater than
|
||||
// m_default_max_tx_fee. This merely a belt-and-suspenders check).
|
||||
if (nFeeRequired > m_wallet->getDefaultMaxTxFee()) {
|
||||
return AbsurdFee;
|
||||
}
|
||||
}
|
||||
|
||||
return SendCoinsReturn(OK);
|
||||
|
||||
Reference in new issue
Block a user