Skip to content

Commit

Permalink
Fix block_locker.js throwing keyIsUint32 error
Browse files Browse the repository at this point in the history
Same issue that was effecting longRunner, perhaps there are more in the code.
  • Loading branch information
sevendoorknobs authored Mar 20, 2018
1 parent c8d07c9 commit 5e08413
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 5e08413

Please sign in to comment.