#[repr(u8)]pub enum SlashingInstruction {
DuplicateBlockProof = 0,
}Expand description
Instructions supported by the program
Variants§
DuplicateBlockProof = 0
Submit a slashable violation proof for node_pubkey, which indicates
that they submitted a duplicate block to the network
Accounts expected by this instruction:
0. [] Proof account, must be previously initialized with the proof
data.
We expect the proof account to be properly sized as to hold a duplicate
block proof. See [ProofType] for sizing requirements.
Deserializing the proof account from offset should result in a
[DuplicateBlockProofData]
Data expected by this instruction:
DuplicateBlockProofInstructionData
Trait Implementations§
Source§impl Clone for SlashingInstruction
impl Clone for SlashingInstruction
Source§fn clone(&self) -> SlashingInstruction
fn clone(&self) -> SlashingInstruction
Returns a duplicate 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 SlashingInstruction
impl Debug for SlashingInstruction
Source§impl From<SlashingInstruction> for u8
impl From<SlashingInstruction> for u8
Source§fn from(enum_value: SlashingInstruction) -> Self
fn from(enum_value: SlashingInstruction) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SlashingInstruction
impl PartialEq for SlashingInstruction
Source§impl TryFrom<u8> for SlashingInstruction
impl TryFrom<u8> for SlashingInstruction
Source§type Error = TryFromPrimitiveError<SlashingInstruction>
type Error = TryFromPrimitiveError<SlashingInstruction>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for SlashingInstruction
impl TryFromPrimitive for SlashingInstruction
const NAME: &'static str = "SlashingInstruction"
type Primitive = u8
type Error = TryFromPrimitiveError<SlashingInstruction>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for SlashingInstruction
impl StructuralPartialEq for SlashingInstruction
Auto Trait Implementations§
impl Freeze for SlashingInstruction
impl RefUnwindSafe for SlashingInstruction
impl Send for SlashingInstruction
impl Sync for SlashingInstruction
impl Unpin for SlashingInstruction
impl UnwindSafe for SlashingInstruction
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,
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