Skip to content

Commit

Permalink
remove redundant whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
backpacker69 committed May 13, 2024
1 parent 6ac3171 commit bde193a
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/wallet/wallet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3872,16 +3872,12 @@ bool CWallet::CreateCoinStake(ChainstateManager& chainman, const CWallet* pwalle
{
// Clear outputs
txNew.vout.erase(txNew.vout.begin() + 1u+bMinterKey, txNew.vout.end());

// Assume success
bool outputsOk = true;

// split and set amounts based on rfc28
if (pwallet->m_split_coins) {

CAmount current = nCredit - nMinFee;
double ratio = current / nTargetOutputAmount;

// Obtain the optimal number of outputs and clamp it to maxOutputs to ensure the fee is not exceeded
int desiredOutputs = std::min(
constrainToMaxUtxos
Expand Down

0 comments on commit bde193a

Please sign in to comment.