From ca2965e689982771a3d11cfe2556bef455a19aed Mon Sep 17 00:00:00 2001 From: David Murdoch <187813+davidmurdoch@users.noreply.github.com> Date: Mon, 18 Dec 2023 14:37:11 -0500 Subject: [PATCH] fix: block bloom filter (#4535) --- packages/ethereum/ethereum/src/miner/miner.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/ethereum/ethereum/src/miner/miner.ts b/packages/ethereum/ethereum/src/miner/miner.ts index 3cb1684d9c..6c1621c273 100644 --- a/packages/ethereum/ethereum/src/miner/miner.ts +++ b/packages/ethereum/ethereum/src/miner/miner.ts @@ -64,7 +64,7 @@ export type BlockData = { const updateBloom = (blockBloom: Buffer, bloom: Buffer) => { let i = 256; - while (--i) blockBloom[i] |= bloom[i]; + while (i--) blockBloom[i] |= bloom[i]; }; const sortByPrice = (values: TypedTransaction[], a: number, b: number) =>