Skip to content

Commit 99792ca

Browse files
authored
Merge pull request dmnd-pool#88 from jbesraa/2025-06-21/logs
Reverse target before printing
2 parents 68f0008 + 2c34bfe commit 99792ca

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

src/translator/downstream/downstream.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -437,8 +437,8 @@ impl IsServer<'static> for Downstream {
437437
/// Only [Submit](client_to_server::Submit) requests for authorized user names can be submitted.
438438
fn handle_submit(&self, request: &client_to_server::Submit<'static>) -> bool {
439439
info!(
440-
"Handling mining.submit for for downstream with connection id {} and job_id {}",
441-
self.connection_id, request.job_id
440+
"Handling mining.submit request {} from {} with job_id {}, nonce: {:?}",
441+
request.id, request.user_name, request.job_id, request.nonce
442442
);
443443

444444
// check first job received

src/translator/proxy/bridge.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,10 @@ impl Bridge {
261261
.map_err(|_| Error::BridgeMutexPoisoned)?
262262
.try_into()
263263
.expect("Internal error: this operation can not fail because the Vec<U8> can always be converted into Inner");
264-
debug!("Upstream target: {:?}", upstream_target.to_vec().as_hex());
264+
265+
let mut dbg_target = upstream_target.clone().to_vec();
266+
dbg_target.reverse();
267+
debug!("Pool target: {:?}", dbg_target.as_hex());
265268
let mut upstream_target: Target = upstream_target.into();
266269
let res = self_
267270
.safe_lock(|s| {

0 commit comments

Comments
 (0)