Fix eth feature enabled build (#1379)
This commit is contained in:
committed by
GitHub
parent
f3a926375a
commit
03b484dbdf
@@ -177,6 +177,12 @@ mod tests {
|
||||
mnemonic: Some("a b c".to_string()),
|
||||
statistics_service_url: None,
|
||||
enabled_statistics: None,
|
||||
#[cfg(all(feature = "eth", not(feature = "coconut")))]
|
||||
enabled_credentials_mode: None,
|
||||
#[cfg(all(feature = "eth", not(feature = "coconut")))]
|
||||
eth_endpoint: "".to_string(),
|
||||
#[cfg(all(feature = "eth", not(feature = "coconut")))]
|
||||
validators: None,
|
||||
};
|
||||
|
||||
let config = Config::new(&args.id);
|
||||
|
||||
@@ -47,10 +47,10 @@ pub struct Run {
|
||||
#[clap(long)]
|
||||
mnemonic: Option<String>,
|
||||
|
||||
/// Set this gateway to work in a disabled credentials mode that would allow clients to bypass bandwidth credential requirement
|
||||
/// Set this gateway to work in a enabled credentials mode that would disallow clients to bypass bandwidth credential requirement
|
||||
#[cfg(all(feature = "eth", not(feature = "coconut")))]
|
||||
#[clap(long)]
|
||||
disabled_credentials_mode: bool,
|
||||
enabled_credentials_mode: Option<bool>,
|
||||
|
||||
/// URL of an Ethereum full node that we want to use for getting bandwidth tokens from ERC20 tokens
|
||||
#[cfg(all(feature = "eth", not(feature = "coconut")))]
|
||||
@@ -84,7 +84,7 @@ impl From<Run> for OverrideConfig {
|
||||
mnemonic: run_config.mnemonic,
|
||||
|
||||
#[cfg(all(feature = "eth", not(feature = "coconut")))]
|
||||
disabled_credentials_mode: run_config.disabled_credentials_mode,
|
||||
enabled_credentials_mode: run_config.enabled_credentials_mode,
|
||||
|
||||
#[cfg(all(feature = "eth", not(feature = "coconut")))]
|
||||
eth_endpoint: run_config.eth_endpoint,
|
||||
|
||||
Reference in New Issue
Block a user