mirror of
https://github.com/Qortal/piratewallet-light-cli.git
synced 2025-01-30 18:42:15 +00:00
Fix total spent
This commit is contained in:
parent
4dbba14f4e
commit
a2c45646d7
@ -139,6 +139,8 @@ impl LightClient {
|
||||
_ => "".to_string()
|
||||
});
|
||||
});
|
||||
|
||||
println!("Total spent: {}", v.total_shielded_value_spent);
|
||||
}
|
||||
)
|
||||
}
|
||||
|
@ -672,12 +672,12 @@ impl LightWallet {
|
||||
block: block_data.height,
|
||||
txid: tx.txid,
|
||||
notes: vec![],
|
||||
total_shielded_value_spent
|
||||
total_shielded_value_spent: 0
|
||||
};
|
||||
txs.insert(tx.txid, tx_entry);
|
||||
}
|
||||
let tx_entry = txs.get_mut(&tx.txid).unwrap();
|
||||
|
||||
tx_entry.total_shielded_value_spent = total_shielded_value_spent;
|
||||
// Save notes.
|
||||
for output in tx
|
||||
.shielded_outputs
|
||||
|
Loading…
Reference in New Issue
Block a user