From a349d2dd9cf46657aa2ed86cd229f88387e5bb25 Mon Sep 17 00:00:00 2001 From: Will Dembinski Date: Wed, 26 Jun 2019 23:03:15 -0700 Subject: [PATCH] Fix for var shadowing --- test/node-http-test.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/node-http-test.js b/test/node-http-test.js index c56cdae683..70e518d087 100644 --- a/test/node-http-test.js +++ b/test/node-http-test.js @@ -47,10 +47,9 @@ describe('Node http', function() { plugins: [require('../lib/wallet/plugin')] }); - const witnessedBlockHashes = {}; node.on('connect', (entry, block) => { const blockHash = block.hash().toString('hex'); - witnessedBlockHashes[blockHash] = blockHash; + witnessedBlocks[blockHash] = blockHash; }); miner = node.miner;