Remove extraneous scope in CreateTransactionInternal

These brackets were restricting a scope for no apparent reason. Remove
them and dedent.
This commit is contained in:
Andrew Chow 2021-05-20 14:53:36 -04:00
parent b2995963b5
commit d2aee3bbc7

View File

@ -606,7 +606,6 @@ bool CWallet::CreateTransactionInternal(
FeeCalculation feeCalc;
TxSize tx_sizes;
int nBytes;
{
std::set<CInputCoin> setCoins;
txNew.nLockTime = GetLocktimeForNewTransaction(chain(), GetLastBlockHash(), GetLastBlockHeight());
std::vector<COutput> vAvailableCoins;
@ -756,7 +755,7 @@ bool CWallet::CreateTransactionInternal(
}
nFeeRet = coin_selection_params.m_effective_feerate.GetFee(nBytes);
// Subtract fee from the change output if not subtrating it from recipient outputs
// Subtract fee from the change output if not subtracting it from recipient outputs
CAmount fee_needed = nFeeRet;
if (nSubtractFeeFromAmount == 0) {
change_position->nValue -= fee_needed;
@ -858,7 +857,6 @@ bool CWallet::CreateTransactionInternal(
error = _("Transaction too large");
return false;
}
}
if (nFeeRet > m_default_max_tx_fee) {
error = TransactionErrorString(TransactionError::MAX_FEE_EXCEEDED);