From 9050228f5610747ab3bbcca1b4f5d2072d6f4279 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 c56cdae68..70e518d08 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;