#[repr(u8)]pub enum ConflictReason {
Show 14 variants
None = 0,
InputUtxoAlreadySpent = 1,
InputUtxoAlreadySpentInThisMilestone = 2,
InputUtxoNotFound = 3,
CreatedConsumedAmountMismatch = 4,
InvalidSignature = 5,
TimelockNotExpired = 6,
InvalidNativeTokens = 7,
StorageDepositReturnUnfulfilled = 8,
InvalidUnlock = 9,
InputsCommitmentsMismatch = 10,
UnverifiedSender = 11,
InvalidChainStateTransition = 12,
SemanticValidationFailed = 255,
}Expand description
Represents the different reasons why a transaction can conflict with the ledger state.
Variants§
None = 0
The block has no conflict.
InputUtxoAlreadySpent = 1
The referenced Utxo was already spent.
InputUtxoAlreadySpentInThisMilestone = 2
The referenced Utxo was already spent while confirming this milestone.
InputUtxoNotFound = 3
The referenced Utxo cannot be found.
CreatedConsumedAmountMismatch = 4
The created amount does not match the consumed amount.
InvalidSignature = 5
The unlock signature is invalid.
TimelockNotExpired = 6
The configured timelock is not yet expired.
InvalidNativeTokens = 7
The given native tokens are invalid.
StorageDepositReturnUnfulfilled = 8
Storage deposit return mismatch.
InvalidUnlock = 9
An invalid unlock was used.
InputsCommitmentsMismatch = 10
The inputs commitments do not match.
UnverifiedSender = 11
The sender was not verified.
InvalidChainStateTransition = 12
The chain state transition is invalid.
SemanticValidationFailed = 255
The semantic validation failed for a reason not covered by the previous variants.
Trait Implementations§
Source§impl Clone for ConflictReason
impl Clone for ConflictReason
Source§fn clone(&self) -> ConflictReason
fn clone(&self) -> ConflictReason
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ConflictReason
impl Debug for ConflictReason
Source§impl Default for ConflictReason
impl Default for ConflictReason
Source§impl<'de> Deserialize<'de> for ConflictReason
impl<'de> Deserialize<'de> for ConflictReason
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl From<ConflictReason> for ConflictReason
impl From<ConflictReason> for ConflictReason
Source§fn from(value: ConflictReason) -> Self
fn from(value: ConflictReason) -> Self
Source§impl From<ConflictReason> for ConflictReason
impl From<ConflictReason> for ConflictReason
Source§fn from(value: ConflictReason) -> Self
fn from(value: ConflictReason) -> Self
Source§impl Packable for ConflictReason
impl Packable for ConflictReason
Source§type UnpackError = ConflictError
type UnpackError = ConflictError
Source§type UnpackVisitor = ()
type UnpackVisitor = ()
Source§fn pack<P: Packer>(&self, packer: &mut P) -> Result<(), P::Error>
fn pack<P: Packer>(&self, packer: &mut P) -> Result<(), P::Error>
Packer.Source§fn unpack<U: Unpacker, const VERIFY: bool>(
unpacker: &mut U,
visitor: &Self::UnpackVisitor,
) -> Result<Self, UnpackError<Self::UnpackError, U::Error>>
fn unpack<U: Unpacker, const VERIFY: bool>( unpacker: &mut U, visitor: &Self::UnpackVisitor, ) -> Result<Self, UnpackError<Self::UnpackError, U::Error>>
Unpacker. The VERIFY generic parameter can be used to skip additional
syntactic checks.Source§impl PartialEq for ConflictReason
impl PartialEq for ConflictReason
Source§impl Serialize for ConflictReason
impl Serialize for ConflictReason
Source§impl TryFrom<u8> for ConflictReason
impl TryFrom<u8> for ConflictReason
impl Copy for ConflictReason
impl Eq for ConflictReason
impl StructuralPartialEq for ConflictReason
Auto Trait Implementations§
impl Freeze for ConflictReason
impl RefUnwindSafe for ConflictReason
impl Send for ConflictReason
impl Sync for ConflictReason
impl Unpin for ConflictReason
impl UnwindSafe for ConflictReason
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::RequestSource§impl<P> PackableExt for Pwhere
P: Packable,
impl<P> PackableExt for Pwhere
P: Packable,
Source§fn unpack_verified<T>(
bytes: T,
visitor: &<P as Packable>::UnpackVisitor,
) -> Result<P, UnpackError<<P as Packable>::UnpackError, UnexpectedEOF>>
fn unpack_verified<T>( bytes: T, visitor: &<P as Packable>::UnpackVisitor, ) -> Result<P, UnpackError<<P as Packable>::UnpackError, UnexpectedEOF>>
Unpacks this value from a type that implements [AsRef<[u8]>].
Source§fn unpack_unverified<T>(
bytes: T,
) -> Result<P, UnpackError<<P as Packable>::UnpackError, UnexpectedEOF>>
fn unpack_unverified<T>( bytes: T, ) -> Result<P, UnpackError<<P as Packable>::UnpackError, UnexpectedEOF>>
Unpacks this value from a type that implements [AsRef<[u8]>] skipping some syntatical checks.
Source§fn packed_len(&self) -> usize
fn packed_len(&self) -> usize
pack.