From 99fe588896f860f91990d66f1d1733f3473c22eb Mon Sep 17 00:00:00 2001 From: teor Date: Thu, 4 Feb 2021 08:08:44 +1000 Subject: [PATCH] Document the impact of the redjubjub channel bound --- zebra-consensus/src/primitives/redjubjub.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/zebra-consensus/src/primitives/redjubjub.rs b/zebra-consensus/src/primitives/redjubjub.rs index 08d9239a9..cab82db4d 100644 --- a/zebra-consensus/src/primitives/redjubjub.rs +++ b/zebra-consensus/src/primitives/redjubjub.rs @@ -62,8 +62,9 @@ pub struct Verifier { impl Default for Verifier { fn default() -> Self { let batch = batch::Verifier::default(); - // This bound should be big enough to avoid RecvErrors - // when tasks wait on results for a long time. + // This bound limits the number of concurrent batches. It should be + // big enough to avoid RecvErrors when tasks wait on results for a long + // time. let (tx, _) = channel(512); Self { tx, batch } }