Conversation
ed2fd03 to
fb4b077
Compare
|
|
that's interesting. I thought it was just one-off queries by the user. Is there a reference which I can see about CL calling getBadBlocks? |
I think you will see those hits by running against a CL like lighthouse, nimbus, or teku against any network. You can also run a kurtosis env. Some of the CLs might also be optimizing on their side how often they call for this json resp, but in the worst case it could be bad. |
This reverts commit d8b1e4a.
dd4f7c8 to
f6fc459
Compare
|
@somnathb1 added cache to store the heap; it'll return the sorted values when queried. |
somnergy
left a comment
There was a problem hiding this comment.
Please fix lint. Rest looks good.
#8171 - reference of rpc api query params/return value is taken from geth [here](https://github.com/ethereum/go-ethereum/blob/b4d99e39176f89bb0ffbb32635e9cf17b5fd7367/eth/api_debug.go#L107) - difference is that geth returns ALL bad blocks, this PR returns 100.
#8171