mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-08 12:19:24 +00:00
Correct Monero build script
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
use std::{
|
use std::{
|
||||||
io::Write,
|
io::Write,
|
||||||
path::Path,
|
path::Path,
|
||||||
fs::{File, remove_file},
|
fs::{File, DirBuilder, remove_file},
|
||||||
};
|
};
|
||||||
|
|
||||||
use dalek_ff_group::EdwardsPoint;
|
use dalek_ff_group::EdwardsPoint;
|
||||||
@@ -33,6 +33,7 @@ fn generators(prefix: &'static str, path: &str) {
|
|||||||
let mut H_str = "".to_string();
|
let mut H_str = "".to_string();
|
||||||
serialize(&mut H_str, &generators.H);
|
serialize(&mut H_str, &generators.H);
|
||||||
|
|
||||||
|
DirBuilder::new().recursive(true).create(".generators").unwrap();
|
||||||
let path = Path::new(".generators").join(path);
|
let path = Path::new(".generators").join(path);
|
||||||
let _ = remove_file(&path);
|
let _ = remove_file(&path);
|
||||||
File::create(&path)
|
File::create(&path)
|
||||||
|
|||||||
Reference in New Issue
Block a user