Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/rpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ where
.await
.map_err(Into::into)?;

debug!("current nonce: {}", current_nonce);
info!("current nonce: {}", current_nonce);

// get the current latest block number
let latest_block_header =
Expand All @@ -326,10 +326,10 @@ where

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

debug!("tx count: {}", tx_count);
info!("tx count: {}", tx_count);

return Ok(current_nonce + U256::from(tx_count));
}
Expand Down