Skip to content

Commit

Permalink
Merge pull request #369 from sevendoorknobs/patch-2
Browse files Browse the repository at this point in the history
Fix block_locker.js throwing keyIsUint32 error
  • Loading branch information
Snipa22 authored Mar 25, 2018
2 parents c8d07c9 + 5e08413 commit 3e28689
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/local_comms.js
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ function Database(){

this.lockBlock = function(blockId){
let txn = this.env.beginTxn();
let blockProto = txn.getBinary(this.blockDB, blockId);
let blockProto = txn.getBinary(this.blockDB, parseInt(blockId));
if (blockProto !== null){
let blockData = global.protos.Block.decode(blockProto);
blockData.unlocked = false;
Expand Down

0 comments on commit 3e28689

Please sign in to comment.