use crate::server::jobs::error::JobFactoryError;
#[derive(Debug)]
pub enum ExtendedChannelError {
OpenChannelInvalidNominalHashrate(&'static str),
UpdateChannelInvalidNominalHashrate(&'static str),
OpenChannelInvalidMaxTarget(&'static str),
UpdateChannelInvalidMaxTarget(&'static str),
InvalidTarget,
RequestedMinExtranonceSizeTooLarge(&'static str),
JobFactoryError(JobFactoryError),
ChainTipNotSet,
TemplateIdNotFound,
JobIdNotFound,
ExtranoncePrefixTooLarge,
ScriptSigSizeTooLarge,
InvalidJobOrigin,
JobMinNtimeBelowChainTip,
GroupJobVersionRollingNotAllowed,
}
#[derive(Debug)]
pub enum GroupChannelError {
FullExtranonceSizeMismatch,
ChainTipNotSet,
TemplateIdNotFound,
JobFactoryError(JobFactoryError),
ScriptSigSizeTooLarge,
}
#[derive(Debug)]
pub enum StandardChannelError {
OpenChannelInvalidNominalHashrate(&'static str),
UpdateChannelInvalidNominalHashrate(&'static str),
OpenChannelInvalidMaxTarget(&'static str),
UpdateChannelInvalidMaxTarget(&'static str),
InvalidTarget,
TemplateIdNotFound,
ExtranoncePrefixTooLarge,
JobFactoryError(JobFactoryError),
ChainTipNotSet,
FailedToConvertToStandardJob,
ScriptSigSizeTooLarge,
JobMinNtimeBelowChainTip,
}