mirror of
https://github.com/Qortal/piratewallet-light-cli.git
synced 2025-02-01 03:12:15 +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.
|
// For each sapling note that is not a change, add a Tx.
|
||||||
txns.extend(v.notes.iter()
|
txns.extend(v.notes.iter()
|
||||||
.filter( |nd| !nd.is_change )
|
.filter( |nd| !nd.is_change )
|
||||||
.map ( |nd|
|
.enumerate()
|
||||||
|
.map ( |(i, nd)|
|
||||||
object! {
|
object! {
|
||||||
"block_height" => v.block,
|
"block_height" => v.block,
|
||||||
"datetime" => v.datetime,
|
"datetime" => v.datetime,
|
||||||
|
"position" => i,
|
||||||
"txid" => format!("{}", v.txid),
|
"txid" => format!("{}", v.txid),
|
||||||
"amount" => nd.note.value as i64,
|
"amount" => nd.note.value as i64,
|
||||||
"address" => LightWallet::note_address(self.config.hrp_sapling_address(), nd),
|
"address" => LightWallet::note_address(self.config.hrp_sapling_address(), nd),
|
||||||
|
Loading…
Reference in New Issue
Block a user