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

Update to bitcoind 24.1 #2711

Merged
merged 2 commits into from
Aug 16, 2023
Merged

Update to bitcoind 24.1 #2711

merged 2 commits into from
Aug 16, 2023

Conversation

t-bast
Copy link
Member

@t-bast t-bast commented Jul 13, 2023

This lets us use the new gettxspendingprevout instead of fetching the whole mempool when looking for txs spending one of our channels.

I had to change many of the test values in InteractiveTxBuilderSpec because bitcoind updated the way it generates the change output in bitcoin/bitcoin#24494 which had mostly an impact on outputs around the 50k sat threshold. Bitcoin Core tries to create a change output with an amount similar to the main output for privacy reason (and has done so for a few versions already). While this makes sense for most users, it creates more liquidity churn for LSPs: ideally that's something we'd like to turn off (we probably don't want to pay for privacy). We may want to start using our own fork of bitcoind with small coinselection tweaks if we want to preserve our utxo set.

t-bast added 2 commits July 13, 2023 13:01
This lets us use the new `gettxspendingprevout` instead of fetching the
whole mempool when looking for txs spending one of our channels.
A new feature was added to bitcoind 24.1+ that tries to make the change
output indistinguishable from the payment output. This is a great for
privacy, but it adds randomness to coin selection and uses a non-minimal
set of inputs sometimes. We work around this by updating the amount of
the output we want bitcoind to use to make sure it's sufficient to pay
for both the channel funding and the change output.

This shouldn't be too much of an issue for normal operation, where we'll
sometimes use two inputs instead of one, which costs more fees, but
increases privacy.

See bitcoin/bitcoin#24494 for details.
@codecov-commenter
Copy link

Codecov Report

Merging #2711 (3510ee5) into master (3e43611) will increase coverage by 0.01%.
The diff coverage is 100.00%.

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

@@            Coverage Diff             @@
##           master    #2711      +/-   ##
==========================================
+ Coverage   85.96%   85.98%   +0.01%     
==========================================
  Files         215      215              
  Lines       17731    17731              
  Branches      765      775      +10     
==========================================
+ Hits        15243    15246       +3     
+ Misses       2488     2485       -3     
Impacted Files Coverage Δ
.../acinq/eclair/blockchain/bitcoind/ZmqWatcher.scala 87.20% <100.00%> (-0.11%) ⬇️
...ir/blockchain/bitcoind/rpc/BitcoinCoreClient.scala 98.46% <100.00%> (+0.02%) ⬆️

... and 5 files with indirect coverage changes

@t-bast t-bast marked this pull request as ready for review August 11, 2023 14:25
@t-bast t-bast merged commit 42249d5 into master Aug 16, 2023
@t-bast t-bast deleted the update-bitcoind-24 branch August 16, 2023 15:10
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.

3 participants