Skip to content

Commit 22e5b2f

Browse files
committed
Use 11-bit mask in Bloom.check (fixes ethereumjs#303)
1 parent 2fe5ec7 commit 22e5b2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/bloom.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Bloom.prototype.add = function (e) {
4242
*/
4343
Bloom.prototype.check = function (e) {
4444
e = utils.sha3(e)
45-
var mask = 511 // binary 111111111
45+
var mask = 2047 // binary 11111111111
4646
var match = true
4747

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

0 commit comments

Comments
 (0)