lighthouse/beacon_node/beacon_chain/tests
naviechan 9b5c2eefd5 Implement sync_committee_rewards API (per-validator reward) (#3903)
[#3661](https://github.com/sigp/lighthouse/issues/3661)

`/eth/v1/beacon/rewards/sync_committee/{block_id}`

```
{
  "execution_optimistic": false,
  "finalized": false,
  "data": [
    {
      "validator_index": "0",
      "reward": "2000"
    }
  ]
}
```

The issue contains the implementation of three per-validator reward APIs:
* `sync_committee_rewards`
* [`attestation_rewards`](https://github.com/sigp/lighthouse/pull/3822)
* `block_rewards`

This PR only implements the `sync_committe_rewards `.

The endpoints can be viewed in the Ethereum Beacon nodes API browser: [https://ethereum.github.io/beacon-APIs/?urls.primaryName=dev#/Rewards](https://ethereum.github.io/beacon-APIs/?urls.primaryName=dev#/Rewards)

The implementation of [consensus client reward APIs](https://github.com/eth-protocol-fellows/cohort-three/blob/master/projects/project-ideas.md#consensus-client-reward-apis) is part of the [EPF](https://github.com/eth-protocol-fellows/cohort-three).

Co-authored-by: navie <naviechan@gmail.com>
Co-authored-by: kevinbogner <kevbogner@gmail.com>
2023-01-25 14:22:15 +01:00
..
attestation_production.rs block and blob handling progress 2022-11-19 16:53:34 -05:00
attestation_verification.rs Use async code when interacting with EL (#3244) 2022-07-03 05:36:50 +00:00
block_verification.rs Optimize finalized chain sync by skipping newPayload messages (#3738) 2022-11-29 08:19:27 +00:00
capella.rs Fix some beacon_chain tests 2023-01-12 19:13:01 +11:00
main.rs Implement sync_committee_rewards API (per-validator reward) (#3903) 2023-01-25 14:22:15 +01:00
merge.rs Fix some beacon_chain tests 2023-01-12 19:13:01 +11:00
op_verification.rs Use async code when interacting with EL (#3244) 2022-07-03 05:36:50 +00:00
payload_invalidation.rs execution API related fixes 2023-01-19 09:32:08 -05:00
rewards.rs Implement sync_committee_rewards API (per-validator reward) (#3903) 2023-01-25 14:22:15 +01:00
store_tests.rs Use eth1_withdrawal_credentials in Test States (#3898) 2023-01-25 14:21:54 +01:00
sync_committee_verification.rs Use eth1_withdrawal_credentials in Test States (#3898) 2023-01-25 14:21:54 +01:00
tests.rs Use eth1_withdrawal_credentials in Test States (#3898) 2023-01-25 14:21:54 +01:00