aboutsummaryrefslogtreecommitdiff
path: root/src/rpc
diff options
context:
space:
mode:
authorAlex Morcos <morcos@chaincode.com>2017-04-25 15:39:32 -0400
committerAlex Morcos <morcos@chaincode.com>2017-06-13 12:35:04 -0400
commit1bebfc8d3aa615dfdd0221f21b87319e36821b71 (patch)
tree092a7224efb48fac182bc26aa2aef39844884c01 /src/rpc
parent9c248e39f2807a7f89e555e99cc55cb2de1ad335 (diff)
Output Fee Estimation Calculations in CreateTransaction
Diffstat (limited to 'src/rpc')
-rw-r--r--src/rpc/mining.cpp6
1 files changed, 3 insertions, 3 deletions
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;
}