nimbus-eth2
nimbus-eth2 copied to clipboard
Limit number of chunks in response to request
In BeaconBlocksByRange, we request a number of blocks which will result in a number of chunks in the response. If the other peer sends more chunks than that, we should abort the chunk downloading early, or the remote client can cause us to do more processing / deserialization than necessary.