mirror of https://github.com/zcash/orchard.git
Merge pull request #326 from zcash/fix-note-decryption-benchmark
Make note decryption benchmark reliable
This commit is contained in:
commit
b1a5c1a635
|
@ -48,6 +48,11 @@ fn bench_note_decryption(c: &mut Criterion) {
|
||||||
Flags::from_parts(true, true),
|
Flags::from_parts(true, true),
|
||||||
Anchor::from_bytes([0; 32]).unwrap(),
|
Anchor::from_bytes([0; 32]).unwrap(),
|
||||||
);
|
);
|
||||||
|
// The builder pads to two actions, and shuffles their order. Add two recipients
|
||||||
|
// so the first action is always decryptable.
|
||||||
|
builder
|
||||||
|
.add_recipient(None, recipient, NoteValue::from_raw(10), None)
|
||||||
|
.unwrap();
|
||||||
builder
|
builder
|
||||||
.add_recipient(None, recipient, NoteValue::from_raw(10), None)
|
.add_recipient(None, recipient, NoteValue::from_raw(10), None)
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
|
Loading…
Reference in New Issue