diff --git a/server/lib/db/blocks.js b/server/lib/db/blocks.js index 623dcde..e4536bd 100644 --- a/server/lib/db/blocks.js +++ b/server/lib/db/blocks.js @@ -9,6 +9,7 @@ let bestBlockHeight = 0; // 1e9 limit = ~2M years from now // Mostly for sync to set height function bestHeight(height) { + height = parseInt(height, 10) || 0; if (Number.isInteger(height) && height > 0 && height < 1 * 1e9) {