Improve log statements in processor

This commit is contained in:
Luke Parker
2023-04-11 06:06:17 -04:00
parent 7538c10159
commit caa695511b
5 changed files with 37 additions and 13 deletions

View File

@@ -533,7 +533,7 @@ impl Coin for Bitcoin {
Err(RpcError::ConnectionError) => Err(CoinError::ConnectionError)?,
// TODO: Distinguish already in pool vs double spend (other signing attempt succeeded) vs
// invalid transaction
Err(e) => panic!("failed to publish TX {:?}: {e}", tx.txid()),
Err(e) => panic!("failed to publish TX {}: {e}", tx.txid()),
}
Ok(())
}

View File

@@ -517,7 +517,7 @@ impl Coin for Monero {
Err(RpcError::ConnectionError) => Err(CoinError::ConnectionError)?,
// TODO: Distinguish already in pool vs double spend (other signing attempt succeeded) vs
// invalid transaction
Err(e) => panic!("failed to publish TX {:?}: {e}", tx.hash()),
Err(e) => panic!("failed to publish TX {}: {e}", hex::encode(tx.hash())),
}
}