Closed nflaig closed 2 weeks ago
Motivation
Fix all remaining routes to properly handle empty [] filter
[]
Description
Ignore empty array when filtering validator rewards
These two request will result in return data for all validators, without filtering
with empty array body
curl -X POST http://localhost:9596/eth/v1/beacon/rewards/attestations/290253 -H "content-type: application/json" -d "[]"
and without body (depends on https://github.com/ChainSafe/lodestar/pull/6881)
curl -X POST http://localhost:9596/eth/v1/beacon/rewards/attestations/290253
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 62.76%. Comparing base (f4460cd) to head (444029d).
f4460cd
444029d
✔️ no performance regression detected
by benchmarkbot/action
Motivation
Fix all remaining routes to properly handle empty
[]
filterDescription
Ignore empty array when filtering validator rewards
These two request will result in return data for all validators, without filtering
with empty array body
and without body (depends on https://github.com/ChainSafe/lodestar/pull/6881)