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

Disconnecting and reconnecting peers block data bug #10

Open
tcanussocys opened this issue Nov 12, 2018 · 0 comments
Open

Disconnecting and reconnecting peers block data bug #10

tcanussocys opened this issue Nov 12, 2018 · 0 comments

Comments

@tcanussocys
Copy link

When disconnecting a peer, adding some blocks and reconnecting, the blockchain replacement sometimes doesn't replace the block data. It keeps the previous value, but if you change it to what it should be, the hash remains valid (and you don't need to mine it).

Say for instance I have a peer Satoshi and Humberto, which are connected and both have the same blockchain with 4 blocks. If I disconnect Humberto, add a block 'Humberto 1' to it, and add two blocks to Satoshi (say, 'Satoshi 1' and 'Satoshi 2'), when reconnecting, Humberto has the same blockchain as Satoshi, but instead of having a block say 'Satoshi 1' it says 'Humberto 1'. If you change this block's data to 'Satoshi 1', the block will be valid without needing to mine it.

It probably is just a visualization issue, but it does lead to some confusion. Hope this helps

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