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;