From 35aff432175b437529200f8a3fcc44001b6569ad Mon Sep 17 00:00:00 2001 From: practicalswift Date: Tue, 18 Jul 2017 14:02:15 +0200 Subject: [PATCH 1/2] Remove unused variable int64_t nEnd Last use of nEnd removed in commit 1fc8c3de0cff2971cc1f9903bfc3d03a982f2fab. --- src/wallet/wallet.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index 5317502589..458c54774f 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -3206,7 +3206,6 @@ bool CWallet::TopUpKeyPool(unsigned int kpSize) CWalletDB walletdb(*dbw); for (int64_t i = missingInternal + missingExternal; i--;) { - int64_t nEnd = 1; if (i < missingInternal) { internal = true; } From 5a6671c4ca85947b59d03a4f9f0f24412a8f9cf7 Mon Sep 17 00:00:00 2001 From: practicalswift Date: Tue, 18 Jul 2017 14:02:42 +0200 Subject: [PATCH 2/2] =?UTF-8?q?Fix=20typo:=20"conditon"=20=E2=86=92=20"con?= =?UTF-8?q?dition"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Typo introduced in commit 439c4e8ad5871f59d87ae2ab77fe01aa6fe41414. --- src/policy/fees.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/policy/fees.cpp b/src/policy/fees.cpp index 73cc0b4a5e..b9476407cf 100644 --- a/src/policy/fees.cpp +++ b/src/policy/fees.cpp @@ -840,7 +840,7 @@ CFeeRate CBlockPolicyEstimator::estimateSmartFee(int confTarget, FeeCalculation // Return failure if trying to analyze a target we're not tracking if (confTarget <= 0 || (unsigned int)confTarget > longStats->GetMaxConfirms()) { - return CFeeRate(0); // error conditon + return CFeeRate(0); // error condition } // It's not possible to get reasonable estimates for confTarget of 1 @@ -852,7 +852,7 @@ CFeeRate CBlockPolicyEstimator::estimateSmartFee(int confTarget, FeeCalculation } if (feeCalc) feeCalc->returnedTarget = confTarget; - if (confTarget <= 1) return CFeeRate(0); // error conditon + if (confTarget <= 1) return CFeeRate(0); // error condition assert(confTarget > 0); //estimateCombinedFee and estimateConservativeFee take unsigned ints /** true is passed to estimateCombined fee for target/2 and target so @@ -899,7 +899,7 @@ CFeeRate CBlockPolicyEstimator::estimateSmartFee(int confTarget, FeeCalculation } } - if (median < 0) return CFeeRate(0); // error conditon + if (median < 0) return CFeeRate(0); // error condition return CFeeRate(median); }