get the position for incoming mempool txids

This commit is contained in:
lucretius
2024-01-23 17:04:35 +01:00
parent 3634a6bcdd
commit 8be65b967a
3 changed files with 14 additions and 14 deletions

View File

@@ -953,11 +953,11 @@ impl LightClient {
wtxs.iter().flat_map(|wtx| {
wtx.incoming_metadata.iter()
.enumerate()
.map(move |(_i, om)|
.map(move |(i, om)|
object! {
"block_height" => wtx.block.clone(),
"datetime" => wtx.datetime.clone(),
"position" => om.position,
"position" => i,
"txid" => format!("{}", wtx.txid),
"amount" => om.value as i64,
"address" => om.address.clone(),