Skip to content

Commit

Permalink
Use preprocessed state in validator API create voluntary exit endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
povi committed May 9, 2024
1 parent 19962d7 commit 431fbe3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion validator/src/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -630,7 +630,7 @@ async fn keymanager_create_voluntary_exit<P: Preset, W: Wait>(
EthPath(pubkey): EthPath<PublicKeyBytes>,
EthQuery(query): EthQuery<CreateVoluntaryExitQuery>,
) -> Result<EthResponse<SignedVoluntaryExit>, Error> {
let state = controller.head_state().value;
let state = controller.preprocessed_state_at_current_slot()?;

let epoch = query
.epoch
Expand Down

0 comments on commit 431fbe3

Please sign in to comment.