Răsfoiți Sursa

[validator/verication] Revert additional changes

Commit a0636984e4669bbef3935db6287d835aea3526b4 is reverted a previous
commit. There were a few relevant variables that were mistakenly changed
in a previous commit and no longer pass clippy. This commit makes clippy
happy.
y 2 ani în urmă
părinte
comite
1ffcaba5aa
1 a modificat fișierele cu 2 adăugiri și 3 ștergeri
  1. 2 3
      src/validator/verification.rs

+ 2 - 3
src/validator/verification.rs

@@ -29,7 +29,7 @@ use log::{debug, error, warn};
 use crate::{
     blockchain::{BlockInfo, BlockchainOverlayPtr},
     error::TxVerifyFailed,
-    runtime::vm_runtime::{Runtime, GAS_LIMIT},
+    runtime::vm_runtime::Runtime,
     tx::Transaction,
     util::time::TimeKeeper,
     validator::{
@@ -204,12 +204,11 @@ pub async fn verify_producer_transaction(
     let tx_hash = tx.hash()?;
     debug!(target: "validator::verification::verify_producer_transaction", "Validating proposal transaction {}", tx_hash);
 
-    // Producer transactions must contain a single, non-empty call 
+    // Producer transactions must contain a single, non-empty call
     if tx.calls.len() != 1 || tx.calls[0].data.is_empty() {
         return Err(TxVerifyFailed::ErroneousTxs(vec![tx.clone()]).into())
     }
 
-
     // Verify call based on version
     let call = &tx.calls[0];
     match block_version {