You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add min_relay_fee checks for fee-estimation calls #1016
I'll create a const for the 253 sat/kvB min rate for the assertions needed for this issue. I think CLN calls it FEERATE_FLOOR to distinguish it from Bitcoin Core policy one they name BITCOIND_MINRELAYTXFEE_PER_KW which is 250.
Therefore, if your transaction is let's say 1003 WU offering a feerate of 250 sats/kW because you think 1003 / WITNESS_SCALE_FACTOR = 250, you might think you're okay. You're not. Your transaction should be scaled to 251 vbytes and the required min fee by Core should be 251 satoshis (see CFeeRate::GetFee).
Activity
dunxen commentedon Jun 17, 2022
Working on this
dunxen commentedon Jun 20, 2022
Kind of related, but is this constant not supposed to be
250for the default min relay fee in Bitcoin Core policy?rust-lightning/lightning/src/chain/chaininterface.rs
Line 54 in 2a8a396
(Divide 1000 by 4 instead of multiplying?)
I might be misunderstanding that variable name.
I'll create a const for the 253 sat/kvB min rate for the assertions needed for this issue. I think CLN calls it
FEERATE_FLOORto distinguish it from Bitcoin Core policy one they nameBITCOIND_MINRELAYTXFEE_PER_KWwhich is 250.ariard commentedon Jun 21, 2022
If you would like the rational Bitcoin Core rounds up during the conversion from weight to vbytes : https://github.com/bitcoin/bitcoin/blob/master/src/policy/policy.cpp#L296
Therefore, if your transaction is let's say 1003 WU offering a feerate of 250 sats/kW because you think
1003 / WITNESS_SCALE_FACTOR = 250, you might think you're okay. You're not. Your transaction should be scaled to 251 vbytes and the required min fee by Core should be 251 satoshis (seeCFeeRate::GetFee).