We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ebfc852 commit 06d9780Copy full SHA for 06d9780
2 files changed
include/bitcoin/database/impl/primitives/sieve.ipp
@@ -90,7 +90,7 @@ constexpr bool CLASS::screened(sieve_t fingerprint) const NOEXCEPT
90
// Compare masked fingerprint to masked sieve, for all masks of the screen.
91
for (sieve_t segment{}; segment <= row; ++segment)
92
{
93
- const auto mask = matrix_[row][segment];
+ const auto mask = masks(row, segment);
94
if (bit_and(fingerprint, mask) == bit_and(sieve_, mask))
95
return true;
96
}
@@ -133,7 +133,7 @@ constexpr bool CLASS::screen(sieve_t fingerprint) NOEXCEPT
133
134
135
// Both indexes are screen selector, as each new screen adds one mask.
136
- const auto mask = matrix_[row][row];
+ const auto mask = masks(row, row);
137
138
// Merge incremented selector, current sieve, and new fingerprint.
139
sieve_ = bit_or
0 commit comments