mirror of
https://github.com/Qortal/piratewallet-light-cli.git
synced 2025-02-11 17:55:47 +00:00
Use position to identify txns at same txid
This commit is contained in:
parent
99c81bc130
commit
d0e7a5f635
@ -754,10 +754,12 @@ impl LightClient {
|
||||
// For each sapling note that is not a change, add a Tx.
|
||||
txns.extend(v.notes.iter()
|
||||
.filter( |nd| !nd.is_change )
|
||||
.map ( |nd|
|
||||
.enumerate()
|
||||
.map ( |(i, nd)|
|
||||
object! {
|
||||
"block_height" => v.block,
|
||||
"datetime" => v.datetime,
|
||||
"position" => i,
|
||||
"txid" => format!("{}", v.txid),
|
||||
"amount" => nd.note.value as i64,
|
||||
"address" => LightWallet::note_address(self.config.hrp_sapling_address(), nd),
|
||||
|
Loading…
x
Reference in New Issue
Block a user