Skip to content

Commit 7db232b

Browse files
committed
remove validator fixture fn
1 parent 6704530 commit 7db232b

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

primitives/src/validator.rs

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -106,22 +106,3 @@ pub enum MessageTypes {
106106
Heartbeat(Heartbeat),
107107
Accounting(Accounting),
108108
}
109-
110-
pub mod fixtures {
111-
use fake::faker::*;
112-
113-
use crate::BigNum;
114-
115-
use super::ValidatorDesc;
116-
117-
pub fn get_validator<V: AsRef<str>>(validator_id: V, fee: Option<BigNum>) -> ValidatorDesc {
118-
let fee = fee.unwrap_or_else(|| BigNum::from(<Faker as Number>::between(1, 13)));
119-
let url = format!(
120-
"http://{}-validator-url.com/validator",
121-
validator_id.as_ref()
122-
);
123-
let id = validator_id.as_ref().to_string();
124-
125-
ValidatorDesc { id, url, fee }
126-
}
127-
}

0 commit comments

Comments
 (0)