Mark confirmed spent notes properly

This commit is contained in:
Aditya Kulkarni
2019-09-09 10:52:07 -07:00
parent 7b34d4fa7e
commit 8547235b28
2 changed files with 21 additions and 5 deletions

View File

@@ -148,7 +148,8 @@ impl LightClient {
"value" => nd.note.value,
"is_change" => nd.is_change,
"address" => LightWallet::address_from_extfvk(&nd.extfvk, nd.diversifier),
"spent" => nd.spent.map(|spent_txid| format!("{}", spent_txid))
"spent" => nd.spent.map(|spent_txid| format!("{}", spent_txid)),
"unconfirmed_spent" => nd.unconfirmed_spent.map(|spent_txid| format!("{}", spent_txid)),
}
)
})