mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-12 23:18:14 +01:00
Merge #10199: Better fee estimates
38bc1ecMake more json-like output from estimaterawfee (Alex Morcos)2d2e170Comments and improved documentation (Alex Morcos)ef589f8minor cleanup: remove unnecessary variable (Alex Morcos)3ee76d6Introduce a scale factor (Alex Morcos)5f1f0c6Historical block span (Alex Morcos)aa19b8eClean up fee estimate debug printing (Alex Morcos)10f7cbdTrack first recorded height (Alex Morcos)3810e97Rewrite estimateSmartFee (Alex Morcos)c7447ecTrack failures in fee estimation. (Alex Morcos)4186d3fExpose estimaterawfee (Alex Morcos)2681153minor refactor: explicitly track start of new bucket range and don't update curNearBucket on final loop. (Alex Morcos)1ba43ccMake EstimateMedianVal smarter about small failures. (Alex Morcos)d3e30bcRefactor to update moving average on fly (Alex Morcos)e5007baChange parameters for fee estimation and estimates on all 3 time horizons. (Alex Morcos)c0a273fChange file format for fee estimates. (Alex Morcos) Tree-SHA512: 186e7508d86a1f351bb656edcd84ee9091f5f2706331eda9ee29da9c8eb5bf67b8c1f2abf6662835560e7f613b1377099054f20767f41ddcdbc89c4f9e78946d
This commit is contained in:
@@ -116,8 +116,8 @@ def check_estimates(node, fees_seen, max_invalid, print_estimates = True):
|
||||
for i,e in enumerate(all_estimates): # estimate is for i+1
|
||||
if e >= 0:
|
||||
valid_estimate = True
|
||||
# estimatesmartfee should return the same result
|
||||
assert_equal(node.estimatesmartfee(i+1)["feerate"], e)
|
||||
if i >= 13: # for n>=14 estimatesmartfee(n/2) should be at least as high as estimatefee(n)
|
||||
assert(node.estimatesmartfee((i+1)//2)["feerate"] > float(e) - delta)
|
||||
|
||||
else:
|
||||
invalid_estimates += 1
|
||||
|
||||
Reference in New Issue
Block a user