-
Notifications
You must be signed in to change notification settings - Fork 100
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
fix: selfish mining #832
fix: selfish mining #832
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Liaojinghui ,what exactly are you trying to solve and when it happens?
I see the code and saw some blockIndex and 10000 as a value of the if. Why using block index?
The problem here is that malicious nodes can start the consensus early when they become the primary, speeding up the consensus and thus generating more blocks and mining more GAS. We did not check a thing that is similar to I use |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Create a new method IsValidTimestamp(previous, current) with UT?
would be challenging to have 10000 blocks UT, LOL, lets find out. |
One way, is to use |
Kinda fun when i set it to 10000, not anymore. |
neo-project/neo#2918
Prevents:
future
timestamp.