Feature/fix validator api (#1403)
* Include CoconutSigner in build for template completion * Use dummy mnemonic for validator-api
This commit is contained in:
committed by
GitHub
parent
aa3310fb9c
commit
fe9cb8a4e6
@@ -58,7 +58,6 @@ pub struct Config {
|
||||
rewarding: Rewarding,
|
||||
|
||||
#[serde(default)]
|
||||
#[cfg(feature = "coconut")]
|
||||
coconut_signer: CoconutSigner,
|
||||
}
|
||||
|
||||
@@ -110,7 +109,7 @@ impl Default for Base {
|
||||
.parse()
|
||||
.expect("default local validator is malformed!"),
|
||||
mixnet_contract_address: DEFAULT_NETWORK.mixnet_contract_address().to_string(),
|
||||
mnemonic: String::default(),
|
||||
mnemonic: "exact antique hybrid width raise anchor puzzle degree fee quit long crack net vague hip despair write put useless civil mechanic broom music day".to_string(),
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -280,7 +279,6 @@ impl Default for Rewarding {
|
||||
|
||||
#[derive(Debug, Deserialize, PartialEq, Serialize)]
|
||||
#[serde(default)]
|
||||
#[cfg(feature = "coconut")]
|
||||
pub struct CoconutSigner {
|
||||
/// Specifies whether rewarding service is enabled in this process.
|
||||
enabled: bool,
|
||||
@@ -294,7 +292,6 @@ pub struct CoconutSigner {
|
||||
all_validator_apis: Vec<Url>,
|
||||
}
|
||||
|
||||
#[cfg(feature = "coconut")]
|
||||
impl Default for CoconutSigner {
|
||||
fn default() -> Self {
|
||||
CoconutSigner {
|
||||
|
||||
Reference in New Issue
Block a user