From 431fbe31e85048dbdd36a26beacec21bf1c411a8 Mon Sep 17 00:00:00 2001 From: Povilas Liubauskas Date: Thu, 9 May 2024 12:13:16 +0300 Subject: [PATCH] Use preprocessed state in validator API create voluntary exit endpoint --- validator/src/api.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/validator/src/api.rs b/validator/src/api.rs index 4288a66a..179d9760 100644 --- a/validator/src/api.rs +++ b/validator/src/api.rs @@ -630,7 +630,7 @@ async fn keymanager_create_voluntary_exit( EthPath(pubkey): EthPath, EthQuery(query): EthQuery, ) -> Result, Error> { - let state = controller.head_state().value; + let state = controller.preprocessed_state_at_current_slot()?; let epoch = query .epoch