mirror of
https://github.com/Qortal/piratewallet-light-cli.git
synced 2025-08-01 12:51:28 +00:00
fix spend from single zaddress
This commit is contained in:
@@ -2080,7 +2080,12 @@ impl LightWallet {
|
|||||||
let extsk = self.zkeys.read().unwrap().iter()
|
let extsk = self.zkeys.read().unwrap().iter()
|
||||||
.find(|zk| zk.extfvk == note.extfvk)
|
.find(|zk| zk.extfvk == note.extfvk)
|
||||||
.and_then(|zk| zk.extsk.clone());
|
.and_then(|zk| zk.extsk.clone());
|
||||||
|
//filter only on Notes with a matching from address
|
||||||
|
if from == LightWallet::note_address(self.config.hrp_sapling_address(), note).unwrap() {
|
||||||
SpendableNote::from(txid, note, anchor_offset, &extsk)
|
SpendableNote::from(txid, note, anchor_offset, &extsk)
|
||||||
|
} else {
|
||||||
|
None
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}).collect();
|
}).collect();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user