Skip to content

Commit 39515d4

Browse files
authored
Add inactivity and inclusion_delay fields to Attestation Rewards (#340)
1 parent ea56687 commit 39515d4

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

types/rewards.yaml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ AttestationsRewards:
3434
AttestationRewards:
3535
type: object
3636
description: "Rewards info for a single attestation"
37-
required: ["validator_index", "head", "target", "source"]
37+
required: ["validator_index", "head", "target", "source", "inactivity"]
3838
properties:
3939
validator_index:
4040
allOf:
@@ -61,11 +61,16 @@ AttestationRewards:
6161
- $ref: "./primitive.yaml#/Uint64"
6262
- example: 2000
6363
- description: "attester's inclusion_delay reward in gwei (phase0 only)"
64+
inactivity:
65+
allOf:
66+
- $ref: "./primitive.yaml#/Int64"
67+
- example: 2000
68+
- description: "attester's inactivity penalty in gwei"
6469

6570
IdealAttestationRewards:
6671
type: object
6772
description: "Ideal rewards info for a single attestation"
68-
required: ["effective_balance", "head", "target", "source"]
73+
required: ["effective_balance", "head", "target", "source", "inactivity"]
6974
properties:
7075
effective_balance:
7176
allOf:
@@ -87,6 +92,16 @@ IdealAttestationRewards:
8792
- $ref: "./primitive.yaml#/Int64"
8893
- example: 5000
8994
- description: "Ideal attester's reward for source vote in gwei"
95+
inclusion_delay:
96+
allOf:
97+
- $ref: "./primitive.yaml#/Uint64"
98+
- example: 5000
99+
- description: "Ideal attester's inclusion_delay reward in gwei (phase0 only)"
100+
inactivity:
101+
allOf:
102+
- $ref: "./primitive.yaml#/Int64"
103+
- example: 5000
104+
- description: "Ideal attester's inactivity penalty in gwei"
90105

91106
BlockRewards:
92107
type: object

0 commit comments

Comments
 (0)