Skip to content

bitcoin_core_sv2: needs a cleanup/sanitize on error types #629

Description

@plebhash

some error types are being returned in a nonsensical way

for example:

fn current_template_ids(&self) -> Result<HashSet<u64>, BitcoinCoreSv2TDPError> {
let template_data_guard = self.template_data.read().map_err(|e| {
error!("Failed to acquire read lock on template_data: {:?}", e);
BitcoinCoreSv2TDPError::FailedToSendNewTemplateMessage
})?;
Ok(template_data_guard.keys().copied().collect())
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status
    Todo 📝

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions