Skip to content

Commit 7d8761c

Browse files
authored
Merge pull request #8 from danyalprout/cody/info_logs
Using info logs for nonce RPC to debug
2 parents ea39a41 + a5041c8 commit 7d8761c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/rpc.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ where
316316
.await
317317
.map_err(Into::into)?;
318318

319-
debug!("current nonce: {}", current_nonce);
319+
info!("current nonce: {}", current_nonce);
320320

321321
// get the current latest block number
322322
let latest_block_header =
@@ -326,10 +326,10 @@ where
326326

327327
// Check if we have a block header
328328
let latest_block_number = if let Some(header) = latest_block_header {
329-
debug!("latest block number: {}", header.number);
329+
info!("latest block number: {}", header.number);
330330
header.number
331331
} else {
332-
debug!("no latest block, returning current nonce");
332+
info!("no latest block, returning current nonce");
333333
// If there's no latest block, return the current nonce without additions
334334
return Ok(current_nonce);
335335
};
@@ -339,7 +339,7 @@ where
339339
.get::<u64>(&format!("tx_count:{}:{}", address, latest_block_number + 1))
340340
.unwrap_or(0);
341341

342-
debug!("tx count: {}", tx_count);
342+
info!("tx count: {}", tx_count);
343343

344344
return Ok(current_nonce + U256::from(tx_count));
345345
}

0 commit comments

Comments
 (0)