pub struct AutoProposalGeneratorConfig {
pub poll_interval_secs: u64,
pub debounce_secs: u64,
pub normal_voting_hours: u32,
}Expand description
Configuration for AutoProposalGenerator. All values default to the
genesis spec; operators tune via NodeConfig later if needed.
Fields§
§poll_interval_secs: u64How often the generator polls current_recommendation(). Defaults to
the epoch period (8h).
debounce_secs: u64Minimum elapsed time between two consecutive auto-issued proposals. Defaults to 24h. Independent of voting duration — even if a prior proposal finishes voting in 6h (alarm fast-track), the generator still respects this debounce before drafting another.
normal_voting_hours: u32Voting duration for non-alarm proposals, hours.
Trait Implementations§
Source§impl Clone for AutoProposalGeneratorConfig
impl Clone for AutoProposalGeneratorConfig
Source§fn clone(&self) -> AutoProposalGeneratorConfig
fn clone(&self) -> AutoProposalGeneratorConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for AutoProposalGeneratorConfig
Source§impl Debug for AutoProposalGeneratorConfig
impl Debug for AutoProposalGeneratorConfig
Auto Trait Implementations§
impl Freeze for AutoProposalGeneratorConfig
impl RefUnwindSafe for AutoProposalGeneratorConfig
impl Send for AutoProposalGeneratorConfig
impl Sync for AutoProposalGeneratorConfig
impl Unpin for AutoProposalGeneratorConfig
impl UnsafeUnpin for AutoProposalGeneratorConfig
impl UnwindSafe for AutoProposalGeneratorConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more