Trying to understand Feerates #2446
Replies: 1 comment 1 reply
-
Eclair needs to connect to a bitcoin core. Bitcoin core knows the history of the blocks and how many transactions are in the mempool. Different kind of transactions eclair wants to make are more or less important. So the target will be to be included in the next block. To figure out how hight the fee should be, eclair just asks bitcoin core for the fee estimation for the target amount of blocks.
Fees are less when there are less transactions waiting in the mempool to be included.
The only significance about 1, 2, 6, 12, 36, 72, 144, 1008 blocks is:
Yes fee estimations can jump around quite a lot and you don’t want to overpay by a lot, as that would drive up overall fees for everyone. |
Beta Was this translation helpful? Give feedback.
-
I'm trying to understand the code in
fr.acinq.eclair.blockchain.fee
. I've searched the internet to try and get some background, but haven't found too much. Also some things, like weighting, seem to be changing over time.First, some things that I have come to understand from external sources. Hopefully, these statements are correct.
Now some questions about things I don't understand based on the code.
reference.conf
, which is loaded in Setup.scala defines default-feerates in terms of sats per kb per target block as a step function. What are target blocks? Do they somehow relate to the space available? Should I intuitively interpret this as fees are less when there is more space available? Are target blocks the same as block targets?Beta Was this translation helpful? Give feedback.
All reactions