Skip to content

Commit bb45eac

Browse files
committed
Switch to expose FeeRate::from_sat_per_vb_u32 in bindings
Previously, we exposed the `FeeRate::from_sat_per_vb_unchecked` constructor, which however was now marked deprecated with `bitcoin-units` v0.1.3 (see https://docs.rs/bitcoin-units/0.1.3/bitcoin_units/fee_rate/struct.FeeRate.html#method.from_sat_per_vb_unchecked). Here, we switch to `from_sat_per_vb_u32`, also fixing our CI job that started to fail on the deprecation warning.
1 parent 297ae84 commit bb45eac

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

bindings/ldk_node.udl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,8 @@ typedef interface OnchainPayment;
156156
interface FeeRate {
157157
[Name=from_sat_per_kwu]
158158
constructor(u64 sat_kwu);
159-
[Name=from_sat_per_vb_unchecked]
160-
constructor(u64 sat_vb);
159+
[Name=from_sat_per_vb_u32]
160+
constructor(u32 sat_vb);
161161
u64 to_sat_per_kwu();
162162
u64 to_sat_per_vb_floor();
163163
u64 to_sat_per_vb_ceil();

0 commit comments

Comments
 (0)