fixed fork detection bug
This commit is contained in:
parent
d96ced51dc
commit
1be8f51560
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user