-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Add block receive height limit #1870
Conversation
Can't we just accept blocks lower than the current height + |
Drop blocks higher than the current height + 500? It's ok for me, but also it will require to remove this blocks from known Hashes. |
|
I will add this before append it to the knownHashes.
|
@erikzhang Ready to merge? |
* Add block cache limit * Remove known hashes * Optimize * Update Blockchain.cs * Clean code * Rename method * Prevent process far blocks * Block ACL * Remove size control neo-project#1870 (comment) * Move knownHashes * Remove no sender * Rename * Rename * Update RemoteNode.ProtocolHandler.cs Co-authored-by: erikzhang <[email protected]>
* Add block cache limit * Remove known hashes * Optimize * Update Blockchain.cs * Clean code * Rename method * Prevent process far blocks * Block ACL * Remove size control neo-project#1870 (comment) * Move knownHashes * Remove no sender * Rename * Rename * Update RemoteNode.ProtocolHandler.cs Co-authored-by: erikzhang <[email protected]>
Close #1859