aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/payments.ts9
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/payments.ts b/lib/payments.ts
index 11cd5eff..df72dbcf 100644
--- a/lib/payments.ts
+++ b/lib/payments.ts
@@ -527,13 +527,18 @@ export const build = async ({
fees.hourFee = fees.halfHourFee;
fees.halfHourFee = fees.fastestFee;
- fees.fastestFee = Math.round(fees.fastestFee * 1.1);
+
+ if (type === types.bitcoin) {
+ fees.fastestFee = Math.round(fees.fastestFee * 1.1);
+ if (fees.fastestFee === fees.halfHourFee) fees.fastestFee++;
+ if (fees.hourFee === fees.halfHourFee) fees.hourFee--;
+ }
if (!feeRate) {
feeRate = fees.halfHourFee;
}
- if (feeRate < fees.economyFee) fail("fee rate too low");
+ if (feeRate < fees.hourFee) fail("fee rate too low");
const replaceable = false;