From 7ae5db97406b870309176211e54c0d597c8ed8a6 Mon Sep 17 00:00:00 2001 From: Patricio Palladino Date: Thu, 1 Aug 2019 11:46:47 -0300 Subject: [PATCH] Update tests --- test/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/index.ts b/test/index.ts index 447a3b8..758a551 100644 --- a/test/index.ts +++ b/test/index.ts @@ -73,11 +73,11 @@ test('blockchain test', function(t) { }) }, function invalidGenesis(done) { - const blockchain = new Blockchain({ validate: true }) + const localBlockchain = new Blockchain({ validate: true }) const badBlock = new Block() badBlock.header.number = Buffer.from([]) - blockchain.putBlock( + localBlockchain.putBlock( badBlock, function(err?: any) { t.ok(err, 'should not validate a block incorrectly flagged as genesis')