Enum bee_tangle::ConflictReason [−][src]
#[repr(u8)]
pub enum ConflictReason {
None,
InputUtxoAlreadySpent,
InputUtxoAlreadySpentInThisMilestone,
InputUtxoNotFound,
InputOutputSumMismatch,
InvalidSignature,
InvalidDustAllowance,
SemanticValidationFailed,
}
Expand description
Represents the different reasons why a transaction can conflict with the ledger state.
Variants
None
The message has no conflict.
InputUtxoAlreadySpent
The referenced Utxo was already spent.
InputUtxoAlreadySpentInThisMilestone
The referenced Utxo was already spent while confirming this milestone.
InputUtxoNotFound
The referenced Utxo cannot be found.
InputOutputSumMismatch
The sum of the inputs and output values does not match.
InvalidSignature
The unlock block signature is invalid.
InvalidDustAllowance
The dust allowance for the address is invalid.
SemanticValidationFailed
The semantic validation failed for a reason not covered by the previous variants.
Trait Implementations
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>,
Deserialize this value from the given Serde deserializer. Read more
type Error = ConflictError
type Error = ConflictError
Associated error type.
Returns the length of the packed bytes.
Packs the instance to bytes and writes them to the passed writer.
Reads bytes from the passed reader and unpacks them into an instance.
Packs the instance to bytes and writes them to a newly allocated vector.
Reads bytes from the passed reader and unpacks them into an instance. Applies syntactic checks. Read more
Auto Trait Implementations
impl RefUnwindSafe for ConflictReason
impl Send for ConflictReason
impl Sync for ConflictReason
impl Unpin for ConflictReason
impl UnwindSafe for ConflictReason
Blanket Implementations
Mutably borrows from an owned value. Read more