We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6704530 commit 7db232bCopy full SHA for 7db232b
primitives/src/validator.rs
@@ -106,22 +106,3 @@ pub enum MessageTypes {
106
Heartbeat(Heartbeat),
107
Accounting(Accounting),
108
}
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