Fix decoy tx fetching

This commit is contained in:
Aditya Kulkarni
2019-10-09 12:27:31 -07:00
parent 1356ef809b
commit b489870480
3 changed files with 20 additions and 13 deletions

View File

@@ -816,8 +816,10 @@ impl LightWallet {
// Mark this Tx as scanned
{
let mut txs = self.txs.write().unwrap();
let mut wtx = txs.get_mut(&tx.txid()).unwrap();
wtx.full_tx_scanned = true;
match txs.get_mut(&tx.txid()) {
Some(wtx) => wtx.full_tx_scanned = true,
None => {},
};
}
}