codechain icon indicating copy to clipboard operation
codechain copied to clipboard

Do not read data from header chain

Open majecty opened this issue 5 years ago • 3 comments

Header chain is not verified. Anyone could generate valid and high score header chain. We should not read data from the header chain.

If we only use the Tendermint consensus, we can remove the header chain.

majecty avatar Sep 09 '19 05:09 majecty

@majecty what was the original purpose of the header chain?

kseo avatar Sep 20 '19 03:09 kseo

Verifying the chain before receiving the whole the chain. Since the best blockchain could be different from the best header chain, we should read the data only from the blockchain.

majecty avatar Sep 20 '19 08:09 majecty

Verifying header chain itself (aka header sync) can be reused in may places. For example the light client. So it would be better if we make separate module out of this after some fix.

junha1 avatar Jan 16 '20 09:01 junha1