alexdovzhanyn / elixium_core

A privacy-preserving decentralized application network
https://www.elixiumnetwork.org/
281 stars 37 forks source link

Longest Chain should be the one with the highest cumulative difficulty #89

Open alexdovzhanyn opened 5 years ago

alexdovzhanyn commented 5 years ago

We're currently tracking the longest (canonical) chain as the chain with the most blocks. This is not necessarily equal to most computational complexity -- we should instead use the chain with highest cumulative difficulty as the canonical chain