diff --git a/README.md b/README.md index 3b614a1..2d448c5 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ const Blockchain = require('ethereumjs-blockchain') const utils = require('ethereumjs-util') const gethDbPath = './chaindata' // Add your own path here -const db = levelup(leveldown(gethDbPath)) +const db = level(gethDbPath) new Blockchain({db: db}).iterator('i', (block, reorg, cb) => { const blockNumber = utils.bufferToInt(block.header.number)