Skip to content

Commit d91e3c0

Browse files
committed
Comments on neutrino filter processing.
1 parent 075943b commit d91e3c0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/chasers/chaser_validate.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -347,10 +347,14 @@ bool chaser_validate::update_neutrino(const header_link& link,
347347
if (!query.neutrino_enabled())
348348
return true;
349349

350+
// Filters are computed during validate, in parallel.
351+
// Validation skipped under checkpoint/milestone to only compute filter.
350352
data_chunk filter{};
351353
if (!compute_filter(filter, block))
352354
return false;
353355

356+
// TODO: move filter header computation to confirmation chaser (ordered).
357+
// TODO: this requires distinct storage array[n, 256] for filter headers.
354358
neutrino_ = compute_filter_header(neutrino_, filter);
355359
return query.set_filter(link, neutrino_, filter);
356360
}

0 commit comments

Comments
 (0)