Enum ckb_verification::CommitError
source · pub enum CommitError {
AncestorNotFound,
Invalid,
}Expand description
Errors due to the fact that the 2pc rule is not respected.
See also Two-Step Transaction Confirmation
Variants§
AncestorNotFound
There are blocks required at 2pc verification but not found.
Invalid
There are block transactions that have not been proposed in the proposal window.
Trait Implementations§
source§impl Clone for CommitError
impl Clone for CommitError
source§fn clone(&self) -> CommitError
fn clone(&self) -> CommitError
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 CommitError
impl Debug for CommitError
source§impl Display for CommitError
impl Display for CommitError
source§impl Error for CommitError
impl Error for CommitError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<CommitError> for BlockError
impl From<CommitError> for BlockError
source§fn from(error: CommitError) -> Self
fn from(error: CommitError) -> Self
Converts to this type from the input type.
source§impl From<CommitError> for Error
impl From<CommitError> for Error
source§fn from(error: CommitError) -> Self
fn from(error: CommitError) -> Self
Converts to this type from the input type.
source§impl PartialEq<CommitError> for CommitError
impl PartialEq<CommitError> for CommitError
source§fn eq(&self, other: &CommitError) -> bool
fn eq(&self, other: &CommitError) -> bool
This method tests for
self and other values to be equal, and is used
by ==.