mirror of
https://github.com/Qortal/piratewallet-light-cli.git
synced 2025-01-30 18:42:15 +00:00
fix spend from single zaddress
This commit is contained in:
parent
ca32c63ff4
commit
89fe8d36cc
@ -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());
|
||||||
SpendableNote::from(txid, note, anchor_offset, &extsk)
|
//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)
|
||||||
|
} else {
|
||||||
|
None
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}).collect();
|
}).collect();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user