diff --git a/crates/eth2util/src/keystore/store.rs b/crates/eth2util/src/keystore/store.rs index 7874bbd0..3b4e1466 100644 --- a/crates/eth2util/src/keystore/store.rs +++ b/crates/eth2util/src/keystore/store.rs @@ -230,6 +230,7 @@ async fn write_file(path: impl AsRef, data: &[u8], mode: u32) -> Result<() .open(path.as_ref()) .await?; file.write_all(data).await?; + file.flush().await?; Ok(()) }