Skip to content

Commit

Permalink
fix: increase BT tx fee by 5 sats in case of the low fee env
Browse files Browse the repository at this point in the history
  • Loading branch information
limpbrains committed Nov 28, 2024
1 parent 39613d1 commit 8559b11
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/store/utils/blocktank.ts
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,14 @@ export const startChannelPurchase = async ({
});

const fees = getFeesStore().onchain;
const feeRes = updateFee({ satsPerByte: fees.fast });
let fee = fees.fast;
// in case of the low fee market, we bump fee by 5 sats
// details: https://github.com/synonymdev/bitkit/issues/2139
if (fee <= 10) {
fee += 5;
}

const feeRes = updateFee({ satsPerByte: fee });
if (feeRes.isErr()) {
return err(feeRes.error.message);
}
Expand Down

0 comments on commit 8559b11

Please sign in to comment.