Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Longer Valid Chain Data Replacement Issue on blockchain demo website. #24

Open
anurag-y opened this issue Jun 29, 2022 · 0 comments
Open

Comments

@anurag-y
Copy link

When a longer valid chain is created which differs from other smaller chains, the data of the longer chain is not replacing the data of shorter chains (though, the hashes are replaced).
Suppose 3 peers have 5 blocks, all in sync and then another peer joins and creates 7 blocks with blocks different from other peers. Here the longer valid blockchain should replace the smaller blockchains. But only the hashes are replaced, and the data remains the same. Only new blocks 6th and 7th get added to all other peers' blockchains. Their 1-5 blocks contain the same data (Hashes are replaced by those from the longer valid chains).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant