#[non_exhaustive]pub enum BlockProductionError {
DriverStopped,
OutcomeUnknown,
TimedOut {
timeout: Duration,
},
NoGenesis,
SchedulerRpc {
op: &'static str,
source: RpcError,
},
ProposalOutcomeUnknown {
source: RpcError,
},
SchedulerRejected {
op: &'static str,
result: String,
},
CommitRejected {
block_id: BlockID,
height: i64,
result: String,
},
UnexpectedTipResult {
result: String,
},
CommitOutcomeUnknown {
block_id: BlockID,
height: i64,
source: RpcError,
reconciliation: String,
},
MalformedSchedulerProposal {
batch: &'static str,
detail: String,
},
ConsensusHashEncoding {
value: &'static str,
source: WriteError,
},
}Expand description
Errors returned while manually producing a local block.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
DriverStopped
The block driver stopped before it could acknowledge the request.
OutcomeUnknown
Shutdown interrupted a request after scheduler work may have begun.
TimedOut
The scheduler did not complete a request before its deadline.
NoGenesis
The scheduler had no genesis block to build on.
SchedulerRpc
A scheduler RPC failed.
ProposalOutcomeUnknown
Proposal RPC failed after the scheduler may have retained a candidate.
SchedulerRejected
The scheduler rejected proposal or commit.
Fields
CommitRejected
The scheduler rejected commit and may still retain the proposed candidate.
Fields
UnexpectedTipResult
The scheduler returned an unexpected tip result.
CommitOutcomeUnknown
Commit transport failed and the current tip did not confirm the proposal.
Fields
MalformedSchedulerProposal
The scheduler returned internally inconsistent proposal batch metadata.
Fields
ConsensusHashEncoding
A scheduler protocol value could not be encoded for consensus hashing.
Trait Implementations§
Source§impl Debug for BlockProductionError
impl Debug for BlockProductionError
Source§impl Display for BlockProductionError
impl Display for BlockProductionError
Source§impl Error for BlockProductionError
impl Error for BlockProductionError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()