Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Publish txs with min-relay-fee met #1687

Merged
merged 3 commits into from
Feb 15, 2021
Merged

Conversation

t-bast
Copy link
Member

@t-bast t-bast commented Feb 12, 2021

When our mempool is full, its min-relay-fee may be constantly changing.
To ensure our txs can be published, we need to check the min-relay-fee when we fund the transaction, and raise it if necessary.

Fixes #1686

When our mempool is full, its min-relay-fee may be constantly changing.
To ensure our txs can be published, we need to check the min-relay-fee when
we fund the transaction, and raise it if necessary.
@t-bast t-bast requested a review from pm47 February 12, 2021 11:26
@codecov-io
Copy link

Codecov Report

Merging #1687 (6e6b717) into master (5d3958d) will decrease coverage by 0.05%.
The diff coverage is 81.81%.

@@            Coverage Diff             @@
##           master    #1687      +/-   ##
==========================================
- Coverage   86.03%   85.98%   -0.06%     
==========================================
  Files         151      151              
  Lines       11456    11477      +21     
  Branches      504      495       -9     
==========================================
+ Hits         9856     9868      +12     
- Misses       1600     1609       +9     
Impacted Files Coverage Δ
...eclair/blockchain/bitcoind/BitcoinCoreWallet.scala 91.86% <81.81%> (-1.97%) ⬇️
...clair/blockchain/electrum/ElectrumClientPool.scala 78.49% <0.00%> (-4.31%) ⬇️
...main/scala/fr/acinq/eclair/router/Validation.scala 90.76% <0.00%> (-1.54%) ⬇️
...main/scala/fr/acinq/eclair/io/PeerConnection.scala 82.97% <0.00%> (-0.43%) ⬇️
...nq/eclair/blockchain/electrum/ElectrumClient.scala 73.52% <0.00%> (-0.37%) ⬇️
...main/scala/fr/acinq/eclair/crypto/Monitoring.scala 100.00% <0.00%> (ø)
...q/eclair/crypto/keymanager/ChannelKeyManager.scala 87.50% <0.00%> (ø)
...q/eclair/blockchain/electrum/ElectrumWatcher.scala 76.98% <0.00%> (+2.38%) ⬆️
...air/crypto/keymanager/LocalChannelKeyManager.scala 88.63% <0.00%> (+2.92%) ⬆️

@t-bast t-bast merged commit 2a359c6 into master Feb 15, 2021
@t-bast t-bast deleted the funding-ensure-min-relay-fee branch February 15, 2021 18:18
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.

Check mempool min-relay-fee for each funding tx
3 participants