Skip to content

Commit

Permalink
Update display output
Browse files Browse the repository at this point in the history
  • Loading branch information
adamspofford-dfinity committed Jan 15, 2025
1 parent a2309c2 commit e207617
Show file tree
Hide file tree
Showing 3 changed files with 179 additions and 351 deletions.
7 changes: 4 additions & 3 deletions src/lib/format/ckbtc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,17 @@ pub fn display_update_balance(blob: &[u8]) -> AnyhowResult<String> {
current_confirmations,
required_confirmations,
pending_utxos,
..
suspended_utxos,
} => {
let mut fmt = "ckBTC error: no new confirmed UTXOs to process".to_string();
if let Some(pending_utxos) = pending_utxos {
write!(
fmt,
" ({} unconfirmed, needing {} confirmations but having {})",
" ({} unconfirmed, needing {} confirmations but having {}, {} ignored)",
pending_utxos.len(),
required_confirmations,
current_confirmations.unwrap_or_default()
current_confirmations.unwrap_or_default(),
suspended_utxos.unwrap_or_default().len(),
)?;
}
fmt
Expand Down
Loading

0 comments on commit e207617

Please sign in to comment.