Need to refrence the right DB.
This commit is contained in:
parent
d058c0c7fd
commit
d618eecd3b
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue