Skip to content

Commit

Permalink
Merge pull request #311 from gkaemmer/bloom-check-fix
Browse files Browse the repository at this point in the history
Use 11-bit mask in Bloom.check
  • Loading branch information
holgerd77 authored Jul 23, 2018
2 parents 2fe5ec7 + 22e5b2f commit 64753d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/bloom.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Bloom.prototype.add = function (e) {
*/
Bloom.prototype.check = function (e) {
e = utils.sha3(e)
var mask = 511 // binary 111111111
var mask = 2047 // binary 11111111111
var match = true

for (var i = 0; i < 3 && match; i++) {
Expand Down

0 comments on commit 64753d5

Please sign in to comment.