bdk icon indicating copy to clipboard operation
bdk copied to clipboard

Support lighting's special feerates

Open TheBlueMatt opened this issue 3 years ago • 1 comments

Lightning is a special snowflake and does fees in satoshis per 1000-weight-units. It'd be nice if BDK supported that, and while we're at it maybe satoshis per 1000-vbytes, which also seems to be missing.

One concern with lightning, that doesn't appear to be handled in the BDK feerate logic is that rounding can push below the bitcoin core 1 sat/vbyte limit, so lightning actually requires a minimum of 253 sats-per-1000-weight. I'm not sure how best to capture this dozen in the BDK API, but I guess just being careful when calculating the concrete fee.

TheBlueMatt avatar May 21 '22 19:05 TheBlueMatt

@notmandatory , let me take this up.

vladimirfomene avatar Jul 15 '22 07:07 vladimirfomene