Skip to content

Commit 98dcc87

Browse files
committed
Extend the fee historgram/estimates cache TTL to 2 minutes
1 parent 0d707e0 commit 98dcc87

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -900,7 +900,7 @@ Returns an array of `(feerate, vsize)` tuples, where each entry's `vsize` is the
900900
paying more than `feerate` but less than the previous entry's `feerate` (except for the first entry, which has no upper bound).
901901
This matches the format used by the Electrum RPC protocol for `mempool.get_fee_histogram`.
902902

903-
Cached for one minute.
903+
Cached for 2 minutes.
904904

905905
Example:
906906

@@ -924,7 +924,7 @@ Uses bitcoind's `smartestimatefee`.
924924

925925
Returned in `sat/vB`, or `null` if no estimate is available.
926926

927-
Cached for one minute.
927+
Cached for 2 minutes.
928928

929929
Example:
930930
```

src/query.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ use crate::util::make_fee_histogram;
1919
#[cfg(feature = "track-spends")]
2020
use crate::types::InPoint;
2121

22-
const FEE_HISTOGRAM_TTL: Duration = Duration::from_secs(60);
23-
const FEE_ESTIMATES_TTL: Duration = Duration::from_secs(60);
22+
const FEE_HISTOGRAM_TTL: Duration = Duration::from_secs(120);
23+
const FEE_ESTIMATES_TTL: Duration = Duration::from_secs(120);
2424

2525
pub struct Query {
2626
network: Network,

0 commit comments

Comments
 (0)