mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-21 05:44:44 +00:00
Add voluntary exit via validator manager (#6612)
* #4303 * #4804 -Add voluntary exit feature to the validator manager -Add delete all validators by using the keyword "all"
This commit is contained in:
@@ -404,8 +404,12 @@ pub mod tests {
|
||||
}
|
||||
|
||||
pub async fn new_with_http_config(http_config: HttpConfig) -> Self {
|
||||
let dir = tempdir().unwrap();
|
||||
let vc = ApiTester::new_with_http_config(http_config).await;
|
||||
Self::new_with_vc(vc).await
|
||||
}
|
||||
|
||||
pub async fn new_with_vc(vc: ApiTester) -> Self {
|
||||
let dir = tempdir().unwrap();
|
||||
let vc_token_path = dir.path().join(VC_TOKEN_FILE_NAME);
|
||||
fs::write(&vc_token_path, &vc.api_token).unwrap();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user