From 3416b9efe8d52d49222df89976fb5df814393075 Mon Sep 17 00:00:00 2001 From: Mason Fischer Date: Thu, 23 Apr 2020 09:39:19 -0400 Subject: [PATCH] Remove defensive code --- docker-compose.yml | 4 ++-- packages/rollup-full-node/src/app/web3-rpc-handler.ts | 4 +--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index d1ea55c06b4a..9d44446c9776 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,10 +1,10 @@ -version: "3" +version: "3.7" services: rollup-full-node: volumes: - - full-node-data:/mnt/full-node:rw + - .:/mnt/full-node:rw - l1-node-data:/mnt/l1-node:rw - l2-node-data:/mnt/l2-node:rw depends_on: diff --git a/packages/rollup-full-node/src/app/web3-rpc-handler.ts b/packages/rollup-full-node/src/app/web3-rpc-handler.ts index a8cb41ac97e6..9d8ce0ae7d0e 100644 --- a/packages/rollup-full-node/src/app/web3-rpc-handler.ts +++ b/packages/rollup-full-node/src/app/web3-rpc-handler.ts @@ -399,9 +399,7 @@ export class DefaultWeb3Handler : transactionOrHash if (transactionHash) { const receipt = await this.getTransactionReceipt(transactionHash) - if (receipt && receipt.logsBloom) { - logsBloom.or(new BloomFilter(hexStrToBuf(receipt.logsBloom))) - } + logsBloom.or(new BloomFilter(hexStrToBuf(receipt.logsBloom))) } }) )