Skip to content

Commit

Permalink
Remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardocustodio committed Nov 5, 2024
1 parent c9f2a81 commit 043820b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
1 change: 0 additions & 1 deletion src/platform_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ pub async fn update_transaction(
}
Err(e) => {
tracing::error!("Error decoding response of the platform: {:?}", e);
// tracing::error!("Response body: {:?}", res);
}
},
Err(e) => tracing::error!("Error sending UpdateTransaction: {:?}", e),
Expand Down
9 changes: 0 additions & 9 deletions src/transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,6 @@ impl TransactionProcessor {
payload: Vec<u8>,
block_header: SubstrateHeader<u32, BlakeTwo256>,
) -> Result<String, Box<dyn std::error::Error + Send + Sync>> {
// Let's correct the nonce here
let public_key = hex::encode(keypair.public_key().0);
let chain_nonce = chain_client
.tx()
Expand Down Expand Up @@ -293,7 +292,6 @@ impl TransactionProcessor {
}
TxStatus::Invalid { message } => {
tracing::error!("Transaction #{} is INVALID: {:?}", request_id, message);
// tracing::error!("Full transaction: {}", encoded_tx);
}
TxStatus::Broadcasted { num_peers: _ } => {
tracing::info!("Transaction #{} has been BROADCASTED", request_id);
Expand Down Expand Up @@ -394,7 +392,6 @@ impl TransactionProcessor {
{
Ok(hash) => Ok(hash),
Err(e) => {
// Few possible errors
// ServerError(1010) - Invalid Transaction - Transaction is outdated
// ServerError(1012) - Transaction is temporally banned
// ServerError(1013) - Transaction already imported
Expand Down Expand Up @@ -492,12 +489,6 @@ impl TransactionProcessor {
tracing::info!("Waiting for 2 blocks to get correct initial nonce");
sleep(Duration::from_millis(BLOCK_TIME_MS * 2)).await;

// tracing::info!(
// "Setting initial nonce to {} for account {}",
// initial_nonce,
// trim_account(hex::encode(self.keypair.public_key().0))
// );

while let Some(requests) = self.receiver.recv().await {
for request in requests {
tracing::info!("Received transaction request: #{}", request.request_id);
Expand Down

0 comments on commit 043820b

Please sign in to comment.