Skip to content

Commit

Permalink
fix(chain_manager): update error logging for unstake tx
Browse files Browse the repository at this point in the history
  • Loading branch information
Tommytrg authored and aesedepece committed Jan 15, 2025
1 parent 366f2cb commit 4b98c64
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions node/src/actors/chain_manager/handlers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1395,7 +1395,7 @@ impl Handler<BuildUnstake> for ChainManager {
withdrawer: self.own_pkh.unwrap(),
}) {
Err(e) => {
log::error!("Error when building stake transaction: {}", e);
log::error!("Error when building unstake transaction: {}", e);
Box::pin(actix::fut::err(e.into()))
}
Ok(nonce) => {
Expand All @@ -1410,7 +1410,7 @@ impl Handler<BuildUnstake> for ChainManager {
};
match transaction_factory::build_ut(msg.operator, withdrawal, msg.fee, nonce) {
Err(e) => {
log::error!("Error when building stake transaction: {}", e);
log::error!("Error when building unstake transaction: {}", e);
Box::pin(actix::fut::err(e.into()))
}
Ok(ut) => {
Expand Down Expand Up @@ -1440,7 +1440,7 @@ impl Handler<BuildUnstake> for ChainManager {
}
}
Err(e) => {
log::error!("Failed to sign stake transaction: {}", e);
log::error!("Failed to sign unstake transaction: {}", e);
Either::Right(actix::fut::result(Err(e)))
}
});
Expand Down

0 comments on commit 4b98c64

Please sign in to comment.