Skip to content
This repository has been archived by the owner on Apr 6, 2020. It is now read-only.

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
alcuadrado committed Aug 1, 2019
1 parent 87ec3a4 commit 7ae5db9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 7ae5db9

Please sign in to comment.