mirror of
https://github.com/jwinterm/nodejs-pool.git
synced 2026-10-17 05:21:27 +02:00
Need to refrence the right DB.
This commit is contained in:
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user