Enum grin_core::core::block::Error [−][src]
pub enum Error {}Show variants
KernelSumMismatch, InvalidTotalKernelSum, CoinbaseSumMismatch, TooHeavy, InvalidBlockVersion(HeaderVersion), InvalidBlockTime, InvalidPow, KernelLockHeight(u64), NRDKernelPreHF3, NRDKernelNotEnabled, Transaction(Error), Secp(Error), Keychain(Error), MerkleProof, Committed(Error), CutThrough, Serialization(Error), Other(String),
Errors thrown by Block validation
Variants
The sum of output minus input commitments does not match the sum of kernel commitments
The total kernel sum on the block header is wrong
Same as above but for the coinbase part of a block, including reward
Restrict block total weight.
InvalidBlockVersion(HeaderVersion)
Block version is invalid for a given block height
Block time is invalid
Invalid POW
KernelLockHeight(u64)
Kernel not valid due to lock_height exceeding block header height
NRD kernels are not valid prior to HF3.
NRD kernels are not valid if disabled locally via “feature flag”.
Transaction(Error)
Underlying tx related error
Underlying Secp256k1 error (signature validation or invalid public key typically)
Keychain(Error)
Underlying keychain related error
Underlying Merkle proof error
Committed(Error)
Error when verifying kernel sums via committed trait.
Validation error relating to cut-through. Specifically the tx is spending its own output, which is not valid.
Serialization(Error)
Underlying serialization error.
Other(String)
Other unspecified error condition
Trait Implementations
impl Fail for Error
[src]
impl Fail for Error
[src]fn cause(&self) -> Option<&dyn Fail>
[src]
fn cause(&self) -> Option<&dyn Fail>
[src]Returns a reference to the underlying cause of this failure, if it is an error that wraps other errors. Read more
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]Returns a reference to the Backtrace
carried by this failure, if it
carries one. Read more
impl Eq for Error
[src]
impl StructuralEq for Error
[src]
impl StructuralPartialEq for Error
[src]
Auto Trait Implementations
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> CloneAny for T where
T: Any + Clone,
impl<T> CloneAny for T where
T: Any + Clone,
pub fn clone_any(&self) -> Box<dyn CloneAny + 'static, Global>
pub fn clone_any_send(&self) -> Box<dyn CloneAny + 'static + Send, Global> where
T: Send,
T: Send,
pub fn clone_any_sync(&self) -> Box<dyn CloneAny + 'static + Sync, Global> where
T: Sync,
T: Sync,
pub fn clone_any_send_sync(
&self
) -> Box<dyn CloneAny + 'static + Sync + Send, Global> where
T: Send + Sync,
&self
) -> Box<dyn CloneAny + 'static + Sync + Send, Global> where
T: Send + Sync,
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> DebugAny for T where
T: Any + Debug,
T: Any + Debug,
impl<T> UnsafeAny for T where
T: Any,
T: Any,