Skip to content

Commit

Permalink
Merge pull request #38 from LN-Zap/fix-dp
Browse files Browse the repository at this point in the history
Round estimates up to nearest integer
  • Loading branch information
mrfelton authored Feb 13, 2024
2 parents 173f922 + 28ff1b7 commit 52bbce8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ function addFeeEstimates(feeByBlockTarget: FeeByBlockTarget, feeEstimates: FeeBy
const lowestFee = getLowestFee(feeByBlockTarget)
for (const [blockTarget, fee] of Object.entries(feeEstimates)) {
if (!lowestFee || fee < lowestFee) {
feeByBlockTarget[blockTarget] = fee;
feeByBlockTarget[blockTarget] = Math.ceil(fee);
}
}
}
Expand Down

0 comments on commit 52bbce8

Please sign in to comment.