From d618eecd3b421ae1cb9e2903dfc8c025ad67b7f2 Mon Sep 17 00:00:00 2001 From: Alexander Blair Date: Fri, 19 May 2017 18:15:44 -0700 Subject: [PATCH] Need to refrence the right DB. --- lib/local_comms.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;