kowala-tech / kcoin

A stable cryptocurrency that algorithmically targets $1 USD using the Kowala Protocol
https://www.kowala.tech/
Other
18 stars 16 forks source link

[Konsensus] Investigate what shout be used instead of total difficulty and uncles #654

Open JekaMas opened 6 years ago

JekaMas commented 6 years ago

Type:

Request

What happened? / What do you need?:

At the moment we use nothing instead of uncles and total difficulty https://github.com/kowala-tech/kcoin/blob/dev/client/core/headerchain.go#L128 (WriteHeader), https://github.com/kowala-tech/kcoin/blob/dev/client/core/blockchain.go#L912 (WriteBlockWithState). After https://github.com/kowala-tech/kcoin/pull/643 we'll use a simple algorithm 'longest chain'. However, we still don't use nighter TotalVotes, nor validators count to exclude such attacks as "nothing on a stake" or "selfish miner".

Affected servers or services:

Priority:

Medium