mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-07 00:42:42 +00:00
Add misc changes
This commit is contained in:
@@ -487,7 +487,7 @@ impl ValidatorClientHttpClient {
|
|||||||
.await
|
.await
|
||||||
}
|
}
|
||||||
|
|
||||||
/// `DELETE eth/v1/keystores`
|
/// `DELETE lighthouse/keystores`
|
||||||
pub async fn delete_lighthouse_keystores(
|
pub async fn delete_lighthouse_keystores(
|
||||||
&self,
|
&self,
|
||||||
req: &DeleteKeystoresRequest,
|
req: &DeleteKeystoresRequest,
|
||||||
|
|||||||
@@ -31,6 +31,7 @@ pub const VALIDATORS_FLAG: &str = "validators";
|
|||||||
pub const GAS_LIMIT_FLAG: &str = "gas-limit";
|
pub const GAS_LIMIT_FLAG: &str = "gas-limit";
|
||||||
pub const FEE_RECIPIENT_FLAG: &str = "suggested-fee-recipient";
|
pub const FEE_RECIPIENT_FLAG: &str = "suggested-fee-recipient";
|
||||||
pub const BUILDER_PROPOSALS_FLAG: &str = "builder-proposals";
|
pub const BUILDER_PROPOSALS_FLAG: &str = "builder-proposals";
|
||||||
|
pub const SKIP_WARNING_PROMPTS: &str = "skip-warning-prompts";
|
||||||
|
|
||||||
const NO_VALIDATORS_MSG: &str = "No validators present on source validator client";
|
const NO_VALIDATORS_MSG: &str = "No validators present on source validator client";
|
||||||
|
|
||||||
@@ -128,6 +129,17 @@ pub fn cli_app<'a, 'b>() -> App<'a, 'b> {
|
|||||||
.possible_values(&["true", "false"])
|
.possible_values(&["true", "false"])
|
||||||
.takes_value(true),
|
.takes_value(true),
|
||||||
)
|
)
|
||||||
|
.arg(
|
||||||
|
Arg::with_name(SKIP_WARNING_PROMPTS)
|
||||||
|
.long(SKIP_WARNING_PROMPTS)
|
||||||
|
.help(
|
||||||
|
"Don't display interactive warning prompts. Only provide \
|
||||||
|
this flag if you know what the prompts say and you know \
|
||||||
|
what you're doing.",
|
||||||
|
)
|
||||||
|
.required(false)
|
||||||
|
.takes_value(false),
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Clone, PartialEq, Debug, Serialize, Deserialize)]
|
#[derive(Clone, PartialEq, Debug, Serialize, Deserialize)]
|
||||||
@@ -167,6 +179,7 @@ pub struct MoveConfig {
|
|||||||
pub builder_proposals: Option<bool>,
|
pub builder_proposals: Option<bool>,
|
||||||
pub fee_recipient: Option<Address>,
|
pub fee_recipient: Option<Address>,
|
||||||
pub gas_limit: Option<u64>,
|
pub gas_limit: Option<u64>,
|
||||||
|
pub skip_warning_prompts: bool,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl MoveConfig {
|
impl MoveConfig {
|
||||||
@@ -180,6 +193,7 @@ impl MoveConfig {
|
|||||||
builder_proposals: clap_utils::parse_optional(matches, BUILDER_PROPOSALS_FLAG)?,
|
builder_proposals: clap_utils::parse_optional(matches, BUILDER_PROPOSALS_FLAG)?,
|
||||||
fee_recipient: clap_utils::parse_optional(matches, FEE_RECIPIENT_FLAG)?,
|
fee_recipient: clap_utils::parse_optional(matches, FEE_RECIPIENT_FLAG)?,
|
||||||
gas_limit: clap_utils::parse_optional(matches, GAS_LIMIT_FLAG)?,
|
gas_limit: clap_utils::parse_optional(matches, GAS_LIMIT_FLAG)?,
|
||||||
|
skip_warning_prompts: matches.is_present(SKIP_WARNING_PROMPTS),
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -206,6 +220,7 @@ async fn run<'a>(config: MoveConfig) -> Result<(), String> {
|
|||||||
builder_proposals,
|
builder_proposals,
|
||||||
fee_recipient,
|
fee_recipient,
|
||||||
gas_limit,
|
gas_limit,
|
||||||
|
skip_warning_prompts
|
||||||
} = config;
|
} = config;
|
||||||
|
|
||||||
// Moving validators between the same VC is unlikely to be useful and probably indicates a user
|
// Moving validators between the same VC is unlikely to be useful and probably indicates a user
|
||||||
|
|||||||
Reference in New Issue
Block a user