Forwarding shares to peers by Sansh2356 · Pull Request #257 · braidpool/braidpool · GitHub
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 7 additions & 8 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion node/src/behaviour/mod.rs
16 changes: 16 additions & 0 deletions node/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,27 @@ pub enum StratumErrors {
PrevHashNotReversed {
error: String,
},
CandidateBlockNotSent {
error: String,
},
ErrorFetchingCurrentUNIXTimestamp {
error: String,
},
}
pub enum StratumResponseErrors {}
impl fmt::Display for StratumErrors {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
match self {
StratumErrors::ErrorFetchingCurrentUNIXTimestamp { error } => {
write!(
f,
"An error {:?} occurred while getting the current unix timestamp .",
error
)
}
StratumErrors::CandidateBlockNotSent { error } => {
write!(f, "{:?}", error)
}
StratumErrors::PrevHashNotReversed { error } => {
write!(
f,
Expand Down
121 changes: 117 additions & 4 deletions node/src/lib.rs
Loading
Loading