Skip to content

Add inactivity penalties to Altair attestation rewards endpoint response #4512

@jimmygchen

Description

@jimmygchen

Description

A new inactivity field has been introduced to the attestation rewards endpoint response in #4474 for Phase 0, to include the inactivity penalty which is not part of the head/target/souce rewards. This hasn't been added to Altair and the implementation needs to be updated.

  • Consensus spec: link
  • Beacon API spec (PR): link

Example response

{
  "ideal_rewards": [
    {
      "effective_balance": "32000000000",
      "head": "212426",
      "target": "212426",
      "source": "212426",
      "inactivity": "0"
    }
  ],
  "total_rewards": [
    {
      "validator_index": "0",
      "head": "212426",
      "target": "212426",
      "source": "212426",
      "inactivity": "0"
    }  
  ]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions