near / nearcore

Reference client for NEAR Protocol
https://near.org
GNU General Public License v3.0
2.32k stars 623 forks source link

[EpochSync] Defend against malicious peers sending invalid epoch sync #11976

Open robin-near opened 2 months ago

robin-near commented 2 months ago

This includes if the peer lies about the recent height. If it doesn't send a valid epoch sync (either because it's just not valid or it isn't high enough), we should ban the peer.