Enum bdk::wallet::ApplyBlockError
source · pub enum ApplyBlockError {
CannotConnect(CannotConnectError),
UnexpectedConnectedToHash {
connected_to_hash: BlockHash,
expected_hash: BlockHash,
},
}
Expand description
An error that may occur when applying a block to Wallet
.
Variants§
CannotConnect(CannotConnectError)
Occurs when the update chain cannot connect with original chain.
UnexpectedConnectedToHash
Fields
§
connected_to_hash: BlockHash
Block hash of connected_to
.
§
expected_hash: BlockHash
Expected block hash of connected_to
, as derived from block
.
Occurs when the connected_to
hash does not match the hash derived from block
.
Trait Implementations§
source§impl Debug for ApplyBlockError
impl Debug for ApplyBlockError
source§impl Display for ApplyBlockError
impl Display for ApplyBlockError
source§impl Error for ApplyBlockError
impl Error for ApplyBlockError
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()