phoreproject / graphene

Phore Synapse working repository
MIT License
13 stars 6 forks source link

GetEpochInformation can freeze the OS #84

Open wqking opened 5 years ago

wqking commented 5 years ago

Reproduce:

  1. Create a EpochInformationRequest.
  2. Set EpochInformationRequest.EpochIndex to very large number (tested 10000000).
  3. Call a Beacon node's GetEpochInformation with the request.

The Beacon node will eat up all RAM and freeze the OS.

meyer9 commented 4 years ago

We should set a limit on how far ahead to simulate empty blocks (probably around 1-2 epochs). If it requests more than that, we should return that there is no epoch information currently (needs to be synced up with the network).