fixed fork detection bug

This commit is contained in:
cubedro 2015-07-21 18:46:28 +03:00
parent d96ced51dc
commit 1be8f51560

View File

@ -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;