merge serialize fix

This commit is contained in:
Aditya Kulkarni 2019-09-10 10:01:13 -07:00
parent 5e233620bd
commit f8d01215a0

View File

@ -494,9 +494,10 @@ impl<R: RngCore + CryptoRng> Builder<R> {
tx_metadata.spend_indices.resize(spends.len(), 0);
tx_metadata.output_indices.resize(orig_outputs_len, 0);
// Create Sapling SpendDescriptions
if spends.len() > 0 {
let anchor = self.anchor.expect("anchor was set if spends were added");
// Create Sapling SpendDescriptions
for (i, (pos, spend)) in spends.iter().enumerate() {
let proof_generation_key = spend.extsk.expsk.proof_generation_key(&JUBJUB);