#[non_exhaustive]pub enum SyncError {
Show 22 variants
Chain(LightChainError),
InvalidConfig,
PeerLimit,
DuplicatePeer,
UnknownPeer,
PeerBanned,
InsufficientPeers,
RoundAlreadyActive,
NoActiveRound,
StaleRound,
RoundExpired,
PeerNotRequested,
DuplicateResponse,
HeaderResponseLimit,
RoundIncomplete,
InsufficientResponses,
NoValidCandidate,
AmbiguousBestChain,
InsufficientAgreement,
NotCurrent,
GenerationExhausted,
TimeOverflow,
}Expand description
Header synchronization configuration, round, peer, or consensus failure.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Chain(LightChainError)
Header consensus/currency gate failed.
InvalidConfig
Bounds or agreement policy are invalid.
PeerLimit
Tracked peer bound is full.
DuplicatePeer
Peer identity is already tracked.
UnknownPeer
Peer is not tracked.
PeerBanned
Peer reached the local invalid-response threshold.
InsufficientPeers
Selected peer list is duplicate or below agreement policy.
RoundAlreadyActive
Another round is active.
NoActiveRound
No round is active.
StaleRound
Round generation is stale.
RoundExpired
Round deadline elapsed before submission.
PeerNotRequested
Peer was not selected for this round.
DuplicateResponse
Peer submitted twice.
HeaderResponseLimit
Response exceeds the standard HSD header bound.
RoundIncomplete
More responses may arrive before deadline.
InsufficientResponses
Deadline elapsed without minimum responses.
NoValidCandidate
Every candidate failed local consensus validation.
AmbiguousBestChain
Equal-work candidates have different tips.
InsufficientAgreement
Greatest-work candidate lacks minimum peer agreement.
NotCurrent
Current-chain evidence was requested before no-extension agreement.
GenerationExhausted
State generation cannot advance.
TimeOverflow
Deadline arithmetic overflowed.
Trait Implementations§
Source§impl Error for SyncError
impl Error for SyncError
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()