pub enum AssumeValidArg {
Disabled,
Hardcoded,
UserInput(BlockHash),
}Expand description
Represents the argument for the assume-valid configuration.
This enum indicates the state of the assume-valid configuration, which defines whether we should validate the scripts for blocks before this one. You can either disable it, use a value provided by floresta or use your own value.
Variants§
Disabled
Do not assume any script are valid, check every single one from genesis. This should make IBD considerably slower, but in theory has the best security model
Hardcoded
Use the hard-coded value provided by Floresta. In this case, you trust that the Floresta repository faces enough scrutiny and review, and therefore the value can be trusted.
UserInput(BlockHash)
Provide your own value, moving the trust assumption to your program.
Trait Implementations§
Source§impl Clone for AssumeValidArg
impl Clone for AssumeValidArg
Source§fn clone(&self) -> AssumeValidArg
fn clone(&self) -> AssumeValidArg
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AssumeValidArg
impl Debug for AssumeValidArg
impl Copy for AssumeValidArg
Auto Trait Implementations§
impl Freeze for AssumeValidArg
impl RefUnwindSafe for AssumeValidArg
impl Send for AssumeValidArg
impl Sync for AssumeValidArg
impl Unpin for AssumeValidArg
impl UnwindSafe for AssumeValidArg
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more