Use different random nullifiers in dummy notes (#39)

This commit is contained in:
Alexey 2022-12-23 11:29:01 +01:00 committed by GitHub
parent babf1da44b
commit 4681cc212a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 2 deletions

View File

@ -403,10 +403,13 @@ impl Builder {
// || SpendInfo::dummy(asset, &mut rng),
// |s| s.create_split_spend(),
// );
let dummy_spend = SpendInfo::dummy(asset, &mut rng);
// spends.extend(iter::repeat_with(|| dummy_spend.clone()).take(num_actions - num_spends));
// Extend the spends and recipients with dummy values.
spends.extend(iter::repeat_with(|| dummy_spend.clone()).take(num_actions - num_spends));
spends.extend(
iter::repeat_with(|| SpendInfo::dummy(asset, &mut rng))
.take(num_actions - num_spends),
);
recipients.extend(
iter::repeat_with(|| RecipientInfo::dummy(&mut rng, asset))