From a2d6e450fd488cb737474f0ff9810c2d1f9108cf Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Tue, 21 Oct 2025 22:08:11 +0800 Subject: fix: pretty json format --- src/network.rs | 6 +++--- src/ui.rs | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/network.rs b/src/network.rs index ef23dad..181bb2c 100644 --- a/src/network.rs +++ b/src/network.rs @@ -229,7 +229,7 @@ impl Peer { eprintln!("Rejecting remote block, POW verification failed"); return; } - println!("Accepting and storing remote block: {:?}", block); + println!("Accepting and storing remote block: {:#?}", block); let network = parent .upgrade() .unwrap(); @@ -293,10 +293,10 @@ impl Peer { } })) { - println!("Setting IBD to {:?} from remote", bc); + println!("Setting IBD to {:#?} from remote", bc); *self_bc = bc; } else if *self_bc != bc { - eprintln!("Remote IBD broadcast did not match ours, {:?} vs. {:?}", bc, self_bc); + eprintln!("Remote IBD broadcast did not match ours, {:#?} vs. {:#?}", bc, self_bc); } } None => { diff --git a/src/ui.rs b/src/ui.rs index 81477c4..697c7f3 100644 --- a/src/ui.rs +++ b/src/ui.rs @@ -43,7 +43,7 @@ impl Ui { if cmd[0] == "bc" { println!( - "{:?}", + "{:#?}", self.blockchain .lock() .await -- cgit v1.2.3