Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pool unblocking + shutdown #1551

Merged
merged 4 commits into from
Mar 20, 2025
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
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,5 @@ cobertura.xml
/examples/*/Cargo.lock
/scripts/sv2.h
/test/integration-tests/template-provider
stratum-message-generator
**/template-provider
stratum-message-generator
6 changes: 1 addition & 5 deletions protocols/v2/roles-logic-sv2/src/parsers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ use template_distribution_sv2::{
CoinbaseOutputConstraints, NewTemplate, RequestTransactionData, RequestTransactionDataError,
RequestTransactionDataSuccess, SetNewPrevHash, SubmitSolution,
};
use tracing::error;

/// Converts a message type number to a human-readable name
pub fn message_type_to_name(msg_type: u8) -> &'static str {
Expand Down Expand Up @@ -930,10 +929,7 @@ impl TryFrom<u8> for MiningTypes {
MESSAGE_TYPE_UPDATE_CHANNEL => Ok(MiningTypes::UpdateChannel),
MESSAGE_TYPE_UPDATE_CHANNEL_ERROR => Ok(MiningTypes::UpdateChannelError),
MESSAGE_TYPE_SETUP_CONNECTION => Err(Error::UnexpectedMessage(v)),
_ => {
error!("Invalid message type: {}", v);
Err(Error::UnexpectedMessage(v))
}
_ => Err(Error::UnexpectedMessage(v)),
}
}
}
Expand Down
Loading
Loading