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

Validating blocks failed after many restart for the master nodes [Bug] #16

Open
transhkoot opened this issue Dec 8, 2023 · 0 comments

Comments

@transhkoot
Copy link

Describe the bug
Sometimes with no reason when restarting the node on the startup it discover that some of the block is not valid ( height or "transaction merkle hash" ) but the block is valid and the merkel hash tree is valid.
So the network start deleting all nodes( not sure why this behaves exists) it should be reconsidered. why you when you call to delete the invalid blocks you call for deleting of all accounts and delegate states?

check this blockManager.deleteByHeightIn(range.toList()) in BlockValidator
and this fun checkTransactionMerkleHash() in MainBlockValidator

To Reproduce
Steps to reproduce the behaviour:
I'm running 5 nodes 3 delegates and 2 peers on virtual machine. just run it for a while and try to restart it every while and you will see the error

Expected behavior
It must not delete any of the states

I know this project is dead but I posted it in hope someone could fix it or at least explain why this behaves like this

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