Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add inactivity and inclusion_delay fields to Attestation Rewards #340

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 17 additions & 2 deletions types/rewards.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ AttestationsRewards:
AttestationRewards:
type: object
description: "Rewards info for a single attestation"
required: ["validator_index", "head", "target", "source"]
required: ["validator_index", "head", "target", "source", "inactivity"]
properties:
validator_index:
allOf:
Expand All @@ -61,11 +61,16 @@ AttestationRewards:
- $ref: "./primitive.yaml#/Uint64"
- example: 2000
- description: "attester's inclusion_delay reward in gwei (phase0 only)"
inactivity:
allOf:
- $ref: "./primitive.yaml#/Int64"
- example: 2000
- description: "attester's inactivity penalty in gwei"

IdealAttestationRewards:
type: object
description: "Ideal rewards info for a single attestation"
required: ["effective_balance", "head", "target", "source"]
required: ["effective_balance", "head", "target", "source", "inactivity"]
properties:
effective_balance:
allOf:
Expand All @@ -87,6 +92,16 @@ IdealAttestationRewards:
- $ref: "./primitive.yaml#/Int64"
- example: 5000
- description: "Ideal attester's reward for source vote in gwei"
inclusion_delay:
allOf:
- $ref: "./primitive.yaml#/Uint64"
- example: 5000
- description: "Ideal attester's inclusion_delay reward in gwei (phase0 only)"
inactivity:
allOf:
- $ref: "./primitive.yaml#/Int64"
- example: 5000
- description: "Ideal attester's inactivity penalty in gwei"

BlockRewards:
type: object
Expand Down
Loading