From 1be8f51560fd657c1049750b8f940d95b889e0a9 Mon Sep 17 00:00:00 2001 From: cubedro Date: Tue, 21 Jul 2015 18:46:28 +0300 Subject: [PATCH] fixed fork detection bug --- lib/history.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/lib/history.js b/lib/history.js index a5566ba..6b19cc4 100644 --- a/lib/history.js +++ b/lib/history.js @@ -202,12 +202,7 @@ function compareBlocks(block1, block2) block1.stateRoot !== block2.stateRoot || block1.miner !== block2.miner || block1.difficulty !== block2.difficulty || - block1.totalDifficulty !== block2.totalDifficulty || - block1.extraData !== block2.extraData || - block1.gasLimit !== block2.gasLimit || - block1.gasUsed !== block2.gasUsed || - block1.transactions.length !== block2.transactions.length || - block1.uncles.length !== block2.uncles.length) + block1.totalDifficulty !== block2.totalDifficulty) return false; return true;