export transactions: output a blank if fee is 0

This commit is contained in:
pythcoiner 2024-12-31 15:12:22 +01:00
parent cfe15b360d
commit b1736bbd40

View File

@ -305,6 +305,11 @@ impl State {
let value = value as f64 / 100_000_000.0;
let fee = fee as f64 / 100_000_000.0;
let block = tx.height.map(|h| h.to_string()).unwrap_or("".to_string());
let fee = if fee != 0.0 {
fee.to_string()
} else {
"".into()
};
let line = format!(
"{},{},{},{},{},{}\n",