From 1bebfc8d3aa615dfdd0221f21b87319e36821b71 Mon Sep 17 00:00:00 2001 From: Alex Morcos Date: Tue, 25 Apr 2017 15:39:32 -0400 Subject: Output Fee Estimation Calculations in CreateTransaction --- src/rpc/mining.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/rpc') diff --git a/src/rpc/mining.cpp b/src/rpc/mining.cpp index cfe42ec7d8..5b999ec158 100644 --- a/src/rpc/mining.cpp +++ b/src/rpc/mining.cpp @@ -870,10 +870,10 @@ UniValue estimatesmartfee(const JSONRPCRequest& request) } UniValue result(UniValue::VOBJ); - int answerFound; - CFeeRate feeRate = ::feeEstimator.estimateSmartFee(nBlocks, &answerFound, ::mempool, conservative); + FeeCalculation feeCalc; + CFeeRate feeRate = ::feeEstimator.estimateSmartFee(nBlocks, &feeCalc, ::mempool, conservative); result.push_back(Pair("feerate", feeRate == CFeeRate(0) ? -1.0 : ValueFromAmount(feeRate.GetFeePerK()))); - result.push_back(Pair("blocks", answerFound)); + result.push_back(Pair("blocks", feeCalc.returnedTarget)); return result; } -- cgit v1.2.3