Skip to content

Conversation

@t-bast
Copy link
Member

@t-bast t-bast commented Nov 19, 2020

  • Retrieve the minimum fee required to enter our mempool
  • Add a metric to track this value
  • Remove fallback fee providers when Bitcoin Core is used
  • Add a metric to track feerate retrieval errors

For fallback fee providers that don't have any mempool information, we default to the 1008 block target. It doesn't matter as these fee providers will not be used anyway.

* Retrieve the minimum fee required to enter our mempool
* Add a metric to track this value
* Remove fallback fee providers when Bitcoin Core is used
* Add a metric to track feerate retrieval errors

For fallback fee providers that don't have any mempool information, we
default to the 1008 block target. It doesn't matter as these fee providers
will not be used anyway.
@t-bast t-bast requested a review from sstone November 19, 2020 08:55
@codecov-io
Copy link

codecov-io commented Nov 19, 2020

Codecov Report

Merging #1608 (ce14f37) into master (407b330) will decrease coverage by 0.69%.
The diff coverage is 80.00%.

@@            Coverage Diff             @@
##           master    #1608      +/-   ##
==========================================
- Coverage   87.34%   86.65%   -0.70%     
==========================================
  Files         146      146              
  Lines       11058    11084      +26     
  Branches      471      477       +6     
==========================================
- Hits         9659     9605      -54     
- Misses       1399     1479      +80     
Impacted Files Coverage Δ
...ir-core/src/main/scala/fr/acinq/eclair/Setup.scala 70.52% <50.00%> (-0.45%) ⬇️
...eclair/blockchain/fee/BitcoinCoreFeeProvider.scala 82.35% <66.66%> (-3.37%) ⬇️
.../scala/fr/acinq/eclair/blockchain/Monitoring.scala 100.00% <100.00%> (ø)
...acinq/eclair/blockchain/fee/BitgoFeeProvider.scala 60.00% <100.00%> (-35.84%) ⬇️
.../eclair/blockchain/fee/EarnDotComFeeProvider.scala 71.42% <100.00%> (-28.58%) ⬇️
...nq/eclair/blockchain/fee/FallbackFeeProvider.scala 100.00% <100.00%> (ø)
...a/fr/acinq/eclair/blockchain/fee/FeeProvider.scala 72.91% <100.00%> (+0.57%) ⬆️
...cinq/eclair/blockchain/fee/SmoothFeeProvider.scala 100.00% <100.00%> (ø)
...a/fr/acinq/eclair/db/sqlite/SqliteFeeratesDb.scala 96.29% <100.00%> (+0.06%) ⬆️
...acinq/eclair/blockchain/watchdogs/Monitoring.scala 0.00% <0.00%> (-100.00%) ⬇️
... and 14 more

Copy link
Member

@pm47 pm47 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nits, otherwise LGTM.

@t-bast t-bast merged commit 040e6d0 into master Dec 7, 2020
@t-bast t-bast deleted the min-relay-fee branch December 7, 2020 18:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants