Skip to content

Commit

Permalink
Update server.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
benbuschmann authored May 17, 2024
1 parent 8f3ef15 commit 1dbf562
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/subcommand/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1253,7 +1253,13 @@ impl Server {
confirmations: info.confirmations,
difficulty: info.difficulty,
hash,
fr_10th: stats.fee_rate_percentiles.fr_10th.to_sat(),
feerate_percentiles: [
stats.fee_rate_percentiles.fr_10th.to_sat(),
stats.fee_rate_percentiles.fr_25th.to_sat(),
stats.fee_rate_percentiles.fr_50th.to_sat(),
stats.fee_rate_percentiles.fr_75th.to_sat(),
stats.fee_rate_percentiles.fr_90th.to_sat()
],
height: info.height.try_into().unwrap(),
max_fee: stats.max_fee.to_sat(),
max_fee_rate: stats.max_fee_rate.to_sat(),
Expand Down Expand Up @@ -6169,7 +6175,7 @@ next
hash: "000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f"
.parse()
.unwrap(),
fr_10th: 0,
feerate_percentiles: [0, 0, 0, 0, 0],
height: 0,
max_fee: 0,
max_fee_rate: 0,
Expand Down Expand Up @@ -6209,7 +6215,7 @@ next
hash: "56d05060a0280d0712d113f25321158747310ece87ea9e299bde06cf385b8d85"
.parse()
.unwrap(),
fr_10th: 0,
feerate_percentiles: [0, 0, 0, 0, 0],
height: 1,
max_fee: 0,
max_fee_rate: 0,
Expand Down

0 comments on commit 1dbf562

Please sign in to comment.