From 5e08413b4728c7e181487b4146420b2dafbe3081 Mon Sep 17 00:00:00 2001 From: sevendoorknobs Date: Tue, 20 Mar 2018 09:52:05 -0400 Subject: [PATCH] Fix block_locker.js throwing keyIsUint32 error Same issue that was effecting longRunner, perhaps there are more in the code. --- 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 0e8335e4..fbfa473a 100644 --- a/lib/local_comms.js +++ b/lib/local_comms.js @@ -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;