Refer to dummy notes as having zero value

This commit is contained in:
Jack Grigg 2024-12-14 14:44:49 +00:00
parent 5e997f2f8a
commit 4d923010ef
1 changed files with 4 additions and 4 deletions

View File

@ -106,7 +106,7 @@ impl Command {
for (index, value) in sapling_spends.iter().enumerate() { for (index, value) in sapling_spends.iter().enumerate() {
if let Some(value) = value { if let Some(value) = value {
if value.inner() == 0 { if value.inner() == 0 {
println!(" - Dummy Spend"); println!("- {index}: Zero value (likely a dummy)");
} else { } else {
println!("- {index}: {} zatoshis", value.inner()); println!("- {index}: {} zatoshis", value.inner());
} }
@ -119,7 +119,7 @@ impl Command {
for (index, value) in sapling_outputs.iter().enumerate() { for (index, value) in sapling_outputs.iter().enumerate() {
if let Some(value) = value { if let Some(value) = value {
if value.inner() == 0 { if value.inner() == 0 {
println!(" - Dummy Output"); println!("- {index}: Zero value (likely a dummy)");
} else { } else {
println!("- {index}: {} zatoshis", value.inner()); println!("- {index}: {} zatoshis", value.inner());
} }
@ -133,14 +133,14 @@ impl Command {
println!("- {index}:"); println!("- {index}:");
if let Some(value) = spend_value { if let Some(value) = spend_value {
if value.inner() == 0 { if value.inner() == 0 {
println!(" - Dummy Spend"); println!(" - Spend: Zero value (likely a dummy)");
} else { } else {
println!(" - Spend: {} zatoshis", value.inner()); println!(" - Spend: {} zatoshis", value.inner());
} }
} }
if let Some(value) = output_value { if let Some(value) = output_value {
if value.inner() == 0 { if value.inner() == 0 {
println!(" - Dummy Output"); println!(" - Output: Zero value (likely a dummy)");
} else { } else {
println!(" - Output: {} zatoshis", value.inner()); println!(" - Output: {} zatoshis", value.inner());
} }