From 4d923010ef8f0ac8cff1671e71066cf6861f4d51 Mon Sep 17 00:00:00 2001 From: Jack Grigg Date: Sat, 14 Dec 2024 14:44:49 +0000 Subject: [PATCH] Refer to dummy notes as having zero value --- src/commands/pczt/inspect.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/commands/pczt/inspect.rs b/src/commands/pczt/inspect.rs index d56fd8e..c811e46 100644 --- a/src/commands/pczt/inspect.rs +++ b/src/commands/pczt/inspect.rs @@ -106,7 +106,7 @@ impl Command { for (index, value) in sapling_spends.iter().enumerate() { if let Some(value) = value { if value.inner() == 0 { - println!(" - Dummy Spend"); + println!("- {index}: Zero value (likely a dummy)"); } else { println!("- {index}: {} zatoshis", value.inner()); } @@ -119,7 +119,7 @@ impl Command { for (index, value) in sapling_outputs.iter().enumerate() { if let Some(value) = value { if value.inner() == 0 { - println!(" - Dummy Output"); + println!("- {index}: Zero value (likely a dummy)"); } else { println!("- {index}: {} zatoshis", value.inner()); } @@ -133,14 +133,14 @@ impl Command { println!("- {index}:"); if let Some(value) = spend_value { if value.inner() == 0 { - println!(" - Dummy Spend"); + println!(" - Spend: Zero value (likely a dummy)"); } else { println!(" - Spend: {} zatoshis", value.inner()); } } if let Some(value) = output_value { if value.inner() == 0 { - println!(" - Dummy Output"); + println!(" - Output: Zero value (likely a dummy)"); } else { println!(" - Output: {} zatoshis", value.inner()); }