diff --git a/lib/local_comms.js b/lib/local_comms.js index 61b8338..da5d98a 100644 --- a/lib/local_comms.js +++ b/lib/local_comms.js @@ -340,7 +340,7 @@ function Database(){ this.refreshEnv(); debug("Getting the data for blockID: " + blockID); let txn = this.env.beginTxn({readOnly: true}); - let data = txn.getBinary(blockID); + let data = txn.getBinary(this.blockDB, blockID); if (data === null){ debug("Unable to get block at height: "+ blockID); return false;