mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-04-27 15:28:49 +02:00
fees: return current block height in estimateSmartFee
This commit is contained in:
committed by
ismaelsadeeq
parent
ab49480d9b
commit
1a7fb5eeee
@@ -875,6 +875,7 @@ CFeeRate CBlockPolicyEstimator::estimateSmartFee(int confTarget, FeeCalculation
|
||||
if (feeCalc) {
|
||||
feeCalc->desiredTarget = confTarget;
|
||||
feeCalc->returnedTarget = confTarget;
|
||||
feeCalc->best_height = nBestSeenHeight;
|
||||
}
|
||||
|
||||
double median = -1;
|
||||
|
||||
@@ -95,6 +95,7 @@ struct FeeCalculation
|
||||
FeeReason reason = FeeReason::NONE;
|
||||
int desiredTarget = 0;
|
||||
int returnedTarget = 0;
|
||||
unsigned int best_height{0};
|
||||
};
|
||||
|
||||
/** \class CBlockPolicyEstimator
|
||||
|
||||
Reference in New Issue
Block a user