Skip to content

Commit

Permalink
Forgot to commit this
Browse files Browse the repository at this point in the history
  • Loading branch information
djordon committed Nov 14, 2024
1 parent 8e6344e commit c625632
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion signer/src/bitcoin/validation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ use crate::storage::model::BitcoinTxId;
use crate::storage::model::QualifiedRequestId;
use crate::storage::model::StacksBlockHash;
use crate::storage::model::StacksTxId;
use crate::storage::DbRead as _;
use crate::DEPOSIT_LOCKTIME_BLOCK_BUFFER;

/// The necessary information for validating a bitcoin transaction.
Expand Down Expand Up @@ -209,7 +210,8 @@ pub enum BitcoinWithdrawalOutputError {
}

impl BitcoinWithdrawalOutputError {
fn into_error(self, ctx: &BitcoinTxContext) -> Error {
/// Make into a crate error
pub fn into_error(self, ctx: &BitcoinTxContext) -> Error {
Error::BitcoinValidation(Box::new(BitcoinValidationError {
error: BitcoinSweepErrorMsg::Withdrawal(self),
context: ctx.clone(),
Expand Down
2 changes: 1 addition & 1 deletion signer/src/storage/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ pub trait DbRead {
///
/// `Ok(None)` is returned if we do not have a record of the
/// withdrawal request.
///
///
/// Note: The above list is probably not exhaustive.
fn get_withdrawal_request_report(
&self,
Expand Down

0 comments on commit c625632

Please sign in to comment.