From 245bc6454e7856f98b6e95608b5418dcf8ac54f4 Mon Sep 17 00:00:00 2001 From: Alexander Blair Date: Fri, 19 May 2017 17:10:30 -0700 Subject: [PATCH] Update with parseInt --- 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 af64412..19583a9 100644 --- a/lib/local_comms.js +++ b/lib/local_comms.js @@ -274,7 +274,7 @@ function Database(){ let sharesSeen = 0; shares[key].forEach(function(final_share){ sharesSeen += 1; - txn.putBinary(global.database.shareDB, key, global.protos.Share.encode(final_share)); + txn.putBinary(global.database.shareDB, parseInt(key), global.protos.Share.encode(final_share)); if (Object.keys(shares).length === blocksSeen && sharesSeen === shares[key].length){ debug('Made it to where I can do the insert'); txn.commit();