Skip to content

Commit c19d3d9

Browse files
committed
Update proposer_slashings and attester_slashings amounts for electra.
1 parent d96b731 commit c19d3d9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

beacon_node/beacon_chain/src/beacon_block_reward.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ impl<T: BeaconChainTypes> BeaconChain<T> {
135135
state
136136
.get_validator(proposer_slashing.proposer_index() as usize)?
137137
.effective_balance
138-
.safe_div(self.spec.whistleblower_reward_quotient)?,
138+
.safe_div(self.spec.whistleblower_reward_quotient_for_state(state))?,
139139
)?;
140140
}
141141

@@ -157,7 +157,7 @@ impl<T: BeaconChainTypes> BeaconChain<T> {
157157
state
158158
.get_validator(attester_index as usize)?
159159
.effective_balance
160-
.safe_div(self.spec.whistleblower_reward_quotient)?,
160+
.safe_div(self.spec.whistleblower_reward_quotient_for_state(state))?,
161161
)?;
162162
}
163163
}

0 commit comments

Comments
 (0)