Skip to content

Commit

Permalink
update format string and relays
Browse files Browse the repository at this point in the history
  • Loading branch information
rot13maxi committed May 3, 2023
1 parent 1e2b77e commit 179bfee
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ fn main() {
debug!("Got a new hashblock!");
let blockhash = BlockHash::from_hex(&message[1].to_hex()).unwrap();
let report = get_value_report_for_block(&blockhash);
let msg = format!("Block {} was just confirmed. The total value of all the non-coinbase outputs was {} sats, or ${} and {} sats in fees (${}) were paid",
let msg = format!("Block {} was just confirmed. The total value of all the non-coinbase outputs was {} sats (${}) for {} sats (${}) in fees",
report.block_height,
report.sats_transferred.to_formatted_string(&Locale::en),
(report.usd_transferred as u64).to_formatted_string(&Locale::en),
Expand All @@ -182,10 +182,10 @@ fn main() {
for relay in vec![
"wss://relay.damus.io",
"wss://nostr.fmt.wiz.biz",
"wss://relay.nos.lol",
"wss://nostr.current.fyi",
"wss://nostr.snort.social",
"wss://nostr.oxtr.dev",
"wss://relay.austrich.net",
"wss://nos.lol",
"wss://nostr.bitcoiner.social",
] {
match publish_to_relay(relay, &message) {
Ok(_) => info!("sent message to {}", relay),
Expand Down

0 comments on commit 179bfee

Please sign in to comment.