Skip to content

Commit

Permalink
debug: fee rate
Browse files Browse the repository at this point in the history
  • Loading branch information
DhananjayPurohit committed Jun 13, 2024
1 parent dcc24cb commit 7c0995f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clients/libs/nodejs/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ const infoConfig = async (clientConfig, ecl) => {
throw new Error("Error getting fee rate from electrum server");
}

// console.log("fee_rate_btc_per_kb:", fee_rate_btc_per_kb);
console.log("fee_rate_btc_per_kb:", fee_rate_btc_per_kb);

// Why does it happen?
if (fee_rate_btc_per_kb <= 0) {
fee_rate_btc_per_kb = 0.00001;
}
const fee_rate_sats_per_byte = (fee_rate_btc_per_kb * 100000.0);

// console.log("fee_rate_sats_per_byte: " + fee_rate_sats_per_byte);
console.log("fee_rate_sats_per_byte: " + fee_rate_sats_per_byte);

const torProxy = clientConfig.torProxy;

Expand Down

0 comments on commit 7c0995f

Please sign in to comment.