diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2025-10-21 22:08:11 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2025-10-21 22:48:18 +0800 |
| commit | a2d6e450fd488cb737474f0ff9810c2d1f9108cf (patch) | |
| tree | 3502cfc71e22f011f1d4f723752ae46e1b860996 | |
| parent | 1bcb58c747e68ed4dd3cdeee3652989056b9d02f (diff) | |
fix: pretty json format
| -rw-r--r-- | src/network.rs | 6 | ||||
| -rw-r--r-- | 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 => { @@ -43,7 +43,7 @@ impl Ui { if cmd[0] == "bc" { println!( - "{:?}", + "{:#?}", self.blockchain .lock() .await |
