Naively, we might anticipate a minRelayTxFee of 1000 sat/kb to correspond to 250 sat/kw. Nevertheless, apparently this isn’t so in keeping with this problem (ACINQ), which additionally references this problem (c-lightning).
/** * why 253 and never 250 since feerate-per-kw is feerate-per-kb / 250 and the minimal relay price fee is 1000 satoshi/Kb ? * * as a result of bitcoin core makes use of neither the precise tx dimension in bytes or the tx weight to test charges, however a "digital dimension" * which is (3 * weight) / 4 ... * so we would like : * price > 1000 * digital dimension * feerate-per-kw * weight > 1000 * (3 * weight / 4) * feerate_per-kw > 250 + 3000 / (4 * weight) * with a conservative minimal weight of 400, we get a minimal feerate_per-kw of 253 * * see https://github.com/ElementsProject/lightning/pull/1251 **/ val MinimumFeeratePerKw = 253
I believed vbytes had been equal to weight items divided by Four and rounded up, so I do not perceive the place
(3 * weight) / 4 comes from.